Capitalises all words in a string to enable comparison

entitle(s, strict = FALSE)

Arguments

s

A string

strict

By default FALSE

Value

A capitalised, trimmed string

Details

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.

Examples

# NOT RUN {
e <- entitle("A treaty concerning things")
e==c("A Treaty Concerning Things")
# }