dplyr slice remove 1 row code example Example: remove rows in r based on row number using dplyr df %>% slice(2:7)