Re: [S] A casefold() function that caps only the first character

John Wallace (jrw@fish.washington.edu)
Thu, 17 Sep 1998 13:35:59 -0700 (PDT)


By avoiding the blackbox which casefold() calls:

.C("S_casefold",
as.character(cv),
as.integer(length(as.character(cv))),
as.logical(upper))[[1]]

My casefold.f() also works in R.

-John

-- 
John Wallace
University of Washington                    ^    ^    ^
Fisheries Research Institute               / \  / \  / \   ^
Box 357980                                 / \  / \   |   / \
Seattle, WA 98195-7980                      |    |  o__~  / \
PHONE   (206) 543-1513                  @ @         /\/\   |
FAX     (206) 685-7471                   ~    
E-MAIL        jw@u.washington.edu              o
WWW      http://www.fish.washington.edu/people/jrw/Wallace.html 
                                                o  _///_ //
                                                <`)=  _<<
                                                    \\\  \\

----------------------------------------------------------------------- This message was distributed by s-news@wubios.wustl.edu. To unsubscribe send e-mail to s-news-request@wubios.wustl.edu with the BODY of the message: unsubscribe s-news