* Apologies, I should have been more clear (I really appreciate all the help though!)
I am extracting a .csv file from the database. This file contains a list of place names. I use INITCAP when I retrieve them, so all of them are a proper mixed case. However, some of these place names should remain capitalized, as they are known for abbreviations such as universities, etc. The end result will be that I will return it back to the database in the adjusted format.
I am new to R and stuck the problem a bit. I retrieve the data, all in the capitals, but I need this to be the right case, that is, change "THIS IS ALL CARDS" to "These are all caps," but I need to be able to exclude certain words. Things like "FYI" and other abbreviations should remain capitalized. I was able to solve some of my problems with a letter library, in particular str_ucfirst. My only remaining problem is part of the exception. We appreciate any suggestions. Thank.
source
share