harrelfe / Hmisc

Harrell Miscellaneous
Other
208 stars 81 forks source link

did not work when letters after the first had capitals #51

Closed dchiu911 closed 8 years ago

dchiu911 commented 8 years ago

Previously, the example returned:

capitalize(c("Hello", "bob", "daN"))
# "Hello" "Bob"   "daN" 

The capital N in daN seemed to be problematic.

The desired behaviour should now be:

capitalize(c("Hello", "bob", "daN"))
# "Hello" "Bob"   "DaN"