remove rows with numbers in r code example Example 1: remove rows in r based on row number using dplyr df %>% slice(2:7) Example 2: remove rownumbers r rownames(data) <- c()