Answers for "how to drop rows in r"

R
4

r remove row dataframe

myData[-c(2, 4, 6), ]   # remove rows 2, 4, 6
Posted by: Guest on July-08-2020
1

remove rows in r based on row number using dplyr

df %>% slice(2:7)
Posted by: Guest on November-03-2020

Browse Popular Code Answers by Language