View source: R/cleaning_helpers.R
clean_school_names | R Documentation |
This function standardizes college names to cfbplotR defaults. This helps for joins and plotting.
clean_school_names(school, keep_non_matches = TRUE)
school |
a character vector of names |
keep_non_matches |
If |
A character vector with the length of school
and cleaned team abbreviations
if they are included in team_name_mapping
. Non matches may be replaced
with NA
(depending on the value of keep_non_matches
).
x <- c("utah", "San Jose State", "Hawaii", "UTSA", "SLC", "USC") # use current location and keep non matches clean_school_names(x) # replace non matches clean_school_names(x, keep_non_matches = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.