I'm building a shiny app and in my app the user gives as input a string such as the following:
cats,dogs,birds,cows
So, several words separated by commas, with no spaces. The thing is I want to capitalize each of those words and I can only do it by making R see the string as a group of strings, so the result of the capitalization should be:
Cats,Dogs,Birds,Cows
I really don't know how to do this, and the problem is that my string isn't even a vector because it is coded as such:
unlist(strsplit(input, ",")))
I'm sorry if this was confusing and thank in advance for any answer