T Trang Mắm New member Sep 20, 2021 #1 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),]
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),]
Đ Đinh Yến New member Sep 20, 2021 #2 Answer: a Explanation: x[rev(order(x$B)),] sort the dataframe in reverse order. Upvote 0 Downvote