Examveda

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

A. top_n(5, value)

B. select_top(5, value)

C. arrange(desc(value))

D. filter_top(5, value)

Answer: Option A


This Question Belongs to R Programming >> Data Manipulation With Dplyr

Join The Discussion

Related Questions on Data Manipulation with dplyr