name.standard_col_names: Standardize column names Make lower case R compliant names...

Description Usage Arguments Examples

View source: R/name.R

Description

Standardize column names Make lower case R compliant names that use an underscore rather than a dot and remove apostrophes. Multiple underscores are reduced to one.

Usage

1
2
name.standard_col_names(name_list = c("first.name", "LastName"),
  fix_camel = FALSE)

Arguments

name_list

List of column names.

fix_camel

Change camel case to underscores before processing.

Examples

1
2
3
4
standard_col_names(c("first.name", "LastName"))
[1] "first_name" "lastname"
name.standard_col_names(c("first.name", "LastName"), fix_camel = T)
[1] "first_name" "last_name"

dads2busy/dataplumbr documentation built on July 2, 2021, 3:24 a.m.