I have this huge data set
and wanted to select the row every 16 days. I tried with dplyr but could not get it to work.
I have this huge data set
and wanted to select the row every 16 days. I tried with dplyr but could not get it to work.
To select every 16th row, you can do:
df[seq(nrow(df)) %% 16 == 1,]
This will filter your data frame so it only contains row 1, row 17, row 33, row 49, etc