snakecase_cols: Convert Column Names to Lower Snake Case

Description Usage Arguments Value Examples

View source: R/get_data.R

Description

This function converts all column names of input data.frame to lower snake case.

Usage

1

Arguments

x

a data.frame of the original csv WHO mortality table, this is the output of import_who

Value

a data.frame with snake case column names

Examples

1
2
3
4
5
6
7
## Not run: 
ccodes <- import_who(path = getwd(), data = "ccode")
names(ccodes)
ccodes <- snakecase_cols(ccodes)
names(ccodes)

## End(Not run)

eugejoh/WHOmortality documentation built on Nov. 4, 2019, 11:58 a.m.