Q. 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)
πŸ’¬ Discuss
βœ… Correct Answer: (A) top_n(5, value)

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
153
Total Visits
πŸ“½οΈ
2 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
89%
Success Rate