Skip to content
Prev 391006 / 398506 Next

how to rename variables by lopping off first 3 characters

If the phrase "some of the variable names begin with" actually turns out to be a sloppy version of "the first column name begins with", then the best solution is probably to specify fileEncoding="UTF-8-BOM" as an argument to read.csv before trying all this fix-after-the-fact work. This will also handle other non-ASCII characters properly if they are present.
On March 14, 2022 10:52:49 AM PDT, Rui Barradas <ruipbarradas at sapo.pt> wrote: