I have a data frame with several rows and I want to create a new data table with specific rows from the larger table. I want the new table to have only the rows where
If your data frame is df:
df
df[1:NROW(df) %% 3 != 2, ]