toupper.initial {DAAG} | R Documentation |
Converts initial character of a string to upper case
Description
This function is useful for use before
plotting, if one wants capitalized axis labels or factor
levels.
Usage
toupper.initial(names)
Arguments
Value
a character vector with upper case initial values |
|
Author(s)
W.J. Braun
Examples
toupper.initial(names(tinting)[c(3,4)])
library(lattice)
levels(tinting$agegp) <- toupper.initial(levels(tinting$agegp))
xyplot(csoa ~ it | sex * agegp, data=tinting)
[Package
DAAG version 0.61
Index]