View source: R/Standardization.R
standardize_variable_names | R Documentation |
Standardize variable names
standardize_variable_names(
data,
path = "https://raw.githubusercontent.com/CSISdefense/Lookup-Tables/master/style/",
var = NULL,
replace_special = FALSE
)
data |
the data frame to be joined |
path |
the location of the lookup file |
var |
the variable names to standardize; by default all will be done |
replace_special |
whether to replaces spaces and special characters in column names with periods |
This function is designed to prepare CSIS data files for lookup application. It primarily smooths out variation between different ways we've written SQL statements. It relies on a pre-existing table of variant variable names. The variable names are matched against that table in a case insensitive manner, though no other procedural standardization is applied at this time.
Data with standardized variable names.
FullData<-standardize_variable_names(
FullData,
Path)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.