i have a very big data frame((35000 line) but i want to get specific rows by skipping for example 100 row.
so in this case each 100 row I’ll just get one row.
i know that it can be done using:
N = nrow(dataframe)
for( i in seq(1:N,by=100))
{
out <- rbind(out, data.frame(...)
}
is this can be done more easily than a for loop?? using subset or something like this
regards
Use something like this: