DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR R
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
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#remove
#column
ADD COMMENT
Topic
COMMENT
Name
8+3 =
Submit