I want to remove some questions from data frame, I know how to delete them individually using
df$x <- NULL
But I want to know a shortcut to perform this task.
I know how to drop columns using integer index using this command:
df <- df[ -c(1, 3:6, 12) ]
But I fear this might change the relative position of my variables.
So, Is there a better way than dropping each column one by one?