Say I have the following data frame:
a <- c("Paul v. the man", "Molly v. the Bear")
df <- data.frame(a)
And I want to accomplish the following:
I want to turn "Paul v. the man" to "Paul v. The Man," which I tried to use the following:
library(tools)
df <- toTitleCase(df$a)
How do I make sure "the" doesn't become lowercase?
I also want to turn "Molly v. the Bear" to "Molly v. The Bear."