UPDATE: dplyr has been updated since this question was asked and now performs as the OP wanted
I´m trying to get the second to the seventh line in a
Here is another way to do row-number based filtering in a pipeline.
df <- data.frame(id = 1:10, var = runif(10)) df %>% .[2:7,] > id var 2 2 0.28817 3 3 0.56672 4 4 0.96610 5 5 0.74772 6 6 0.75091 7 7 0.05165