Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR R

R drop columns

undesired <- c('mpg', 'cyl', 'hp')

mtcars <- mtcars %>%
  select(-one_of(undesired))
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #R #drop #columns
ADD COMMENT
Topic
Name
7+5 =