79113329

Date: 2024-10-22 09:32:24
Score: 1
Natty:
Report link

Use contains from tidyselect

ori_df <- data.frame(ccat_a=1,wt=2,cat_b=1,cf=6,fbw=4)
ori_df %>% 
    select(contains(c("cat", "b")))
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: yaennu.s