adplus-dvertising
frame-decoration

Question

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)

Posted under R Programming

Answer: (a).new <- old[-n,]

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Which of the following code will drop the nth column?

Similar Questions

Discover Related MCQs

Q. Which of the following code drop the ith and jth column?

Q. Which of the following statement find cases with no missing values?

Q. Which of the following statement is normal distribution?

Q. which of the following statement gives cumulative sum?

Q. Which of the following is uniform distribution?

Q. Which of the following truncates real x to integers?

Q. Which of the following tests each element of x for membership in y?

Q. Which of the following finds the maximum value in the vector x, exclude missing values?

Q. Which of the following produces the variance covariance matrix?

Q. Which of the following will reverse the order of values in x?

Q. Which of the following finds row sums for each level of a grouping variable?

Q. Which of the following statement applies the function (FUN) to either rows (1) or columns (2) on object X?

Q. Which of the following statement finds the maximum for each column?

Q. Which of the following statement tells the row with the minimum value for every column?

Q. Which of the following may be used for linear regression?

Q. Which of the following sets the size of the outer margins for the graph?

Q. Which of the following function is used for plotting histogram?

Q. Which of the following will add the title “R language” to the graph?

Q. ______ let’s you perform SQL queries on your R data frames.

Q. ______ splits a data frame and results an array.