adplus-dvertising
frame-decoration

Question

Which of the following sort a dataframe by the order of the elements in B?

a.

x[rev(order(x$B)),]

b.

x[ordersort(x$B),]

c.

x[order(x$B),]

d.

x[rev(x$B),]

Posted under R Programming

Answer: (a).x[rev(order(x$B)),]

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 sort a dataframe by the order of the elements in B?

Similar Questions

Discover Related MCQs

Q. Which of the following is Mac menu command?

Q. _____ list the variables in the workspace.

Q. ___________ remove all the variables from the workspace.

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

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?