Vidyalelo
R Programming · Q15

Data Manipulation with dplyr

Programming · R Programming · question 15

Q15

In dplyr, how do you select the top 5 rows based on a variable named value in descending order?

A.
top_n(5, value)
Answer
B.
select_top(5, value)
C.
arrange(desc(value))
D.
filter_top(5, value)

Answer: Option A

Solution

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