powered by
capitalise(x)
capitalise(c("foo", "bar")) # [1] "Foo" "Bar"
Run the code above in your browser using DataLab