tladeras’s avatartladeras’s Twitter Archive—№ 7,195

  1. TIL: how to utilize dynamic dots in rename(). You can make a named vector of column names and use !!! to rename them. rename_vec <- c("new_col"="old_col", "new_col2"="old_col2") df |> rename(!!!rename_vec) Very slick! #RStats