Q. In dplyr, how do you select columns that match a specific pattern using the select() function?

  • (A) select(pattern = "specific_pattern")
  • (B) choose_cols(matches("specific_pattern"))
  • (C) select(columns = matches("specific_pattern"))
  • (D) pick_cols(pattern = "specific_pattern")
πŸ’¬ Discuss
βœ… Correct Answer: (B) choose_cols(matches("specific_pattern"))

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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