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
Actually dplyr's slice function is made for this kind of subsetting:
slice
df %>% slice(2:7)
(I'm a little late to the party but thought I'd add this for future readers)