Examveda

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")

Answer: Option B


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

Join The Discussion

Related Questions on Data Manipulation with dplyr