code_to_human: : Format code variable names to proper names.

Description Usage Arguments Examples

Description

: A function that turns code based variable names to human friendly names, useful in particular for converting variable names with underscores to more easily interpretable words as axis labels in plots and in spreadsheets.

Usage

1
code_to_human(string, capitalization_length = 1)

Arguments

string

The string variable you would like to transform. (character)

capitalization_length

The length at or below which, substrings should be turned into all CAPS (integer)

Examples

1
2
code_to_human("age_years") # "Age Years"
code_to_human("icu_patient_count", 3) # "ICU Patient Count"

ClaraMarquardt/ehR documentation built on May 6, 2019, 12:02 p.m.