
Rex C. answered 09/06/19
Tutor
5
(35)
Experienced Statistics Instructor
Dropping all the columns at once (such as df <- df[, -c(1, 3:6, 12)]) will not change the relative position of the variables until the operation is performed. However, if you drop the columns one by one, it will then change the positions, unless you are dropping them by name.