Renaud Lancelot <[EMAIL PROTECTED]> writes:
> This question was posted a while ago and answered by Christian
> Hoffmann. I wrapped it in a small function:
>
> CapLeading <- function (string){
...
Version of same:
s <- "the quick red fox jumps over the lazy brown dog"
ss <- strsplit(s, " ")[[1]]
ss1 <- sub("(.).*", "\\1", ss)
ss2 <- sub(".", "", ss)
paste(toupper(ss1), ss2, sep="", collapse=" ")
--
O__ ---- Peter Dalgaard Blegdamsvej 3
c/ /'_ --- Dept. of Biostatistics 2200 Cph. N
(*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918
~~~~~~~~~~ - ([EMAIL PROTECTED]) FAX: (+45) 35327907
______________________________________________
[EMAIL PROTECTED] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html