Description Usage Arguments Value Examples
View source: R/utility_functions.R
Clean up text for use as file names. Converts all characters to lowercase, removes punctuation and extra whitespace, replaces spaces between words with underscores, and adds ".pdf" to the end of the title.
1 | clean_titles(data, col = "title")
|
data |
data frame |
col |
text column in the data frame to clean up. "title" by default. |
Character vector of cleaned text.
1 2 | df <- data.frame(title = c("Paper Title: Subtitle", "O Rly? A Study"), pages = c(20, 40))
df$cleaned <- clean_titles(df)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.