Vidyalelo
R Programming · Q41

Data Visualization with ggplot2

Programming · R Programming · question 41

Q41

Which of the following code will drop the nth column?

A.
new <- old[-n,]
Answer
B.
new <- old[,-n]
C.
new <- old[,-c(i,j)]
D.
new <- subset(old,logical)

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board