@0x00string @inherentlee R has a package called "janitor" that, among other things, can convert random strings in the column headers of a table to well-formed #snake_case strings.

cran.r-project.org/web/package

#rstats