Which Of The Following Code Will Drop The Nth Column #630
Which of the following code will drop the nth column?
This multiple choice question (MCQ) is related to the book/course gs gs110 R Language. It can also be found in gs gs110 Commands, Packages, Visualizing Data and Linear Regression - Commands - Quiz No.2.
Which of the following code will drop the nth column?
new <- old[-n,]
new <- old[,-n]
new <- old[,-c(i,j)]
new <- subset(old,logical)