simpleCap | R Documentation |
given multi-word vector, capitalize the first letter of each word. Taken from 'Examples' section of ?toupper
simpleCap(x, lowerCaps_v = T)
x |
vector |
lowerCaps_v |
boolean indicating if capitalized letters (that are not the first letter in each word) should be left capitalized or changed to lower case. |
same as X, but each first letter is capitalized.
a <- "capitalize the first letter"
b <- "optionally RETURN other CAPS to lower"
c <- c("works with multiple", "strings at once")
simpleCap(a)
simpleCap(b)
simpleCap(b, F)
simpleCap(c)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.