Subset of table in R using row numbers?

后端 未结 1 409
野趣味
野趣味 2020-12-21 16:22

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

1条回答
  •  执念已碎
    2020-12-21 16:49

    If your data frame is df:

    df[1:NROW(df) %% 3 != 2, ]
    

    0 讨论(0)
提交回复
热议问题