entitle.Rd
Capitalises all words in a string to enable comparison
entitle(s, strict = FALSE)
s | A string |
---|---|
strict | By default FALSE |
A capitalised, trimmed string
The function capitalises all words in the strings passed to it, as well as trimming all white space from the starts and ends of the strings.
# NOT RUN { e <- entitle("A treaty concerning things") e==c("A Treaty Concerning Things") # }