Which of the following code will drop the nth column?
(a) new <- old[-n,]
(b) new <- old[,-n]
(c) new <- old[,-c(i,j)]
(d) new <- subset(old,logical)
I got this question in an online interview.
The origin of the question is Commands topic in portion Commands, Packages, Visualizing Data and Linear Regression of R Programming