Learn R Programming

stats19 (version 3.1.0)

format_column_names: Format column names of raw STATS19 data

Description

This function takes messy column names and returns clean ones that work well with R by default. Names that are all lower case with no R-unfriendly characters such as spaces and - are returned.

Usage

format_column_names(column_names)

Value

Column names cleaned.

Arguments

column_names

Column names to be cleaned

Examples

Run this code
# \donttest{
if(curl::has_internet()) {
crashes_raw = read_collisions(year = 2022)
column_names = names(crashes_raw)
column_names
format_column_names(column_names = column_names)
}
# }

Run the code above in your browser using DataLab