Answers for "drop() in dataframe in r"

R
3

r remove row dataframe

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

drop a column in r data frame

df <- df %>%
  select(-column_to_drop)
Posted by: Guest on February-27-2021

Browse Popular Code Answers by Language