View source: R/utils-standardize_names.R
standardize_names | R Documentation |
This function takes a character vector and standardizes the names by converting them to lowercase, removing any trailing information after a comma, removing any information within square brackets or parentheses, removing any non-alphanumeric characters, replacing empty names with "invalid", and converting the names to uppercase.
standardize_names(object)
object |
A character vector containing the names to be standardized. |
A character vector with the standardized names.
standardize_names(c("John Doe", "Jane Smith (Manager)", "Alice, PhD"))
# Output: [1] "JOHNDOE" "JANESMITH" "ALICE"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.