Description Usage Arguments Examples
standardize column names for a dataframe
1 |
df |
dataframe whose colnames you want to standardize |
1 2 3 4 5 6 7 8 9 10 11 12 13 | # Handling of periods in names:
# Assume that a period should be replaced by an underscore
# to preserve whatever separation of words was intended
# by the original inclusion of periods, Don't
# want to simply remove them, but they're inconvenient.
# Replace periods with an underscore:
df <- mtcars
head(df)
names(df) <- paste0("_.", names(df), ")")
head(df)
names(df) <- fixnames(df)
head(df)
df
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.