I'm facing some trouble with this R looping. I imagine it's because R isn't so prepared to code this kind of looping.
Thank you in advance!
df <- data.frame("x1" = NULL)
a <- 1
j <- 1
while (a<201)
{
for(i in 1:1156)
{
df[j,"x1"] <- j
j <- j + 1
}
a <- a + 1
}
length(df$pontos)
df