InseadDataAnalytics / INSEADAnalytics

Other
122 stars 1.31k forks source link

Column Deleting on R #141

Open Carlotta1989 opened 6 years ago

Carlotta1989 commented 6 years ago

What is the code I need to write to completely delete a column of data? Thanks!

jerepow commented 6 years ago

Easiest way is using the dplyr package:

dataset = dataset %>% dplyr::select(-columnYouWannaDelete, -2ndcolumnYouWannaDelete)