casemod {equate} | R Documentation |
This function changes the case of specified letters within a string
casemod(x, chars = 1, upper = TRUE)
x |
string |
chars |
vector of integers indexing the characters to be modified (see below for details) |
upper |
logical. If TRUE (default), specified characters will be set to uppercase, otherwise lowercase
|
By default the first letter is capitalized. chars
is truncated to be of length length(x)
and may only contain values between 1 and nchar(x)
Returns a string
Anthony Albano tony.d.albano@gmail.com
casemod("latex") casemod("latex",c(1,3,5))