Displaying 3 results from an estimated 3 matches for "capleading".
2010 Sep 22
2
cwhmisc package error
...(only difference is that
the full dataset has all the states and counties in the southeast United
States). I keep getting this strange error with the lowerize function
(which didn't occur the first few times I use the code below), and oddly
enough the error doesn't happen with the function CapLeading (which is in
the same package).
> correlfile[1:3,]
state statecounty county
1 AL AL_AUTAUGA AUTAUGA
2 AL AL_BALDWIN BALDWIN
3 AL AL_BARBOUR BARBOUR
library(cwhmisc)
>
correlfile$county[correlfile$state=="AL"]=lowerize(correlfile$county[correlfile$state=="...
2010 Dec 15
3
How to apitalize leading letters & else of personal names?
Dear R world,
Do you know about a function that would capitalize in the correct manner
first and family names?
I found in the cwhmisc only the CapLeading function, but it just does not do
the job, taking care only to capitalize the first letter of a word.
I am looking for a function that would recognize " |'|Mc|-" and capitalize
the first letter following these characters.
An example:
names<-c("jean-francois st-john",&qu...
2004 Dec 05
2
String manipulation---mixed case
Hello,
Does anyone know of a "slick" way to get R to convert a string which is all upper case to a string where the first letter in each word is upper case and all others are lower case?
I suspect the solution is to begin by parsing the string, convert the appropriate letters to upper and lower case using "toupper" and "tolower", and then to paste the pieces back