Answers for "how to remove (drop) a column in r by name"

0

how to remove (drop) a column in r by name

R> df[ , -which(names(df) %in% c("z","u"))]
  x y
1 1 2
2 2 3
3 3 4
4 4 5
5 5 6
Posted by: Guest on September-01-2021

Code answers related to "how to remove (drop) a column in r by name"

Browse Popular Code Answers by Language