Description Usage Arguments Value Examples
Removes odd characters from field names and makes them lower case. Converts periods to underscores. Makes table field names safe to use in PostgreSQL databases.
1 |
names |
A vector of strings |
A vector of strings with punctuation and spaces removed, and replaced with underscores
1 2 3 4 | x <- c("Isabella", "Andrew", "Graham", "Leigh")
y <- c(10, 25, 19, 36)
df <- data.frame( "First Name" = x, "High score! in 2018" = y)
colnames(df) <- safe_names(colnames(df))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.