capwords("a function to capitalize words in a title")
capwords("a function to capitalize words in a title", AP = FALSE)
capwords("testing the iProduct for defects")
capwords("testing the iProduct for defects", strict = TRUE)
capwords("testing the iProduct for defects", onlyfirst = TRUE)
capwords("testing the iProduct for defects", preserveMixed = TRUE)
capwords("title_using_underscores_as_separators", sep = "_")
Run the code above in your browser using DataLab