Q. How do you count the number of distinct values in a column named category in dplyr?

  • (A) count_distinct(category)
  • (B) distinct_count(category)
  • (C) calculate_distinct(category)
  • (D) n_distinct(category)
πŸ’¬ Discuss
βœ… Correct Answer: (D) n_distinct(category)

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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