capitalize_words | R Documentation |
Capitalizes words in character strings.
capitalize_words(x, strict = FALSE, first = FALSE)
x |
Character vector. |
strict |
Whether to lowercase characters not being capitalized. |
first |
Whether to only capitalize the first word. |
Character vector of the same length as x
.
Other helper functions: ch1903_to_wgs84
,
clean_strings
,
format_addresses
,
format_scientific_names
,
is.empty
, lvapply
,
melt_by_listcol
, na.remove
,
normalize_language
,
parse_scientific_names
,
quotemeta
,
replace_values_in_list
,
sp_transform
,
subset_search_results
,
unique_na
x <- "hello wORLd"
capitalize_words(x)
capitalize_words(x, first = TRUE)
capitalize_words(x, strict = TRUE)
capitalize_words("3-in-1 pear", first = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.