I was just trying to convert this upper-cased string to title case using the recommended tools
package but couldn't until I used stringr::str_to_title()
. This is the exact code I used:
> tools::toTitleCase("TOOL 5a: ASSESSMENT TOOL FOR SOCIAL SUPPORT SERVICES")
[1] "TOOL 5a: ASSESSMENT TOOL for SOCIAL SUPPORT SERVICES"
> stringr::str_to_title("TOOL 5a: ASSESSMENT TOOL FOR SOCIAL SUPPORT SERVICES")
[1] "Tool 5a: Assessment Tool For Social Support Services"
What went wrong with the tools
version?