
Last chance! 50% off unlimited learning
Sale ends in
capply
apply function to elements in character vector (utility function)
cap
and capitalize
change to capital letters.
lower
and lowerize
change to lower case letters.
CapLeading
Capitalizes the first character of each element of a
character vector
XXXcl
used in capitalize and lowerizecapply(str,ff,...)
cap(char)
capitalize(str)
lower(char)
lowerize(str)
CapLeading(str)
XXXcl(str, ff)
# capitalize shows the use of capply
cap("f") # "F"
capitalize(c("TruE","faLSe")) # "TRUE" "FALSE"
lower("R") # "r"
lowerize("TruE") # "true"
CapLeading(c("all you ","need")) # "All you " "Need"
capply(c("abc", "elephant"), rev) # "cba" "tnahpele"
Run the code above in your browser using DataLab