What is tidyselect::all_of() passing to e.g. dplyr::select() that a standard vector is not?
“Using an external vector in selections was deprecated in tidyselect 1.1.0.”
dynamic column relocating using tidyselect
My dataset contains sets of three columns: “varn_name”, “varn_desc”, and “varn_cats”, where n is a sequence of consecutive integers from 1. I’d like to order these columns so that they follow this order (i.e. “var1_name”, “var1_desc”, “var1_name”, “var2_name”, “var2_desc”, etc). n varies between datasets and has no upper limit, so I’m hoping for a solution that accommodates this variability.