rename_col.Rd
Side_0o_Effect's https://stackoverflow.com/a/16490387
rename_col(data, old_name, new_name, ...)
data with columns to rename
old name - no need to "quote"
new name - no need to "quote"
dt <- data.frame(a = 1, b = 2)
rename(dt, a, b)
#> Error in rename(dt, a, b): All renaming inputs must be named.
rename(dt, a, a, unique = TRUE)
#> Error in rename(dt, a, a, unique = TRUE): Can't rename columns with `TRUE`.
#> ✖ `TRUE` must be numeric or character, not `TRUE`.