R-listers,
I'm working on a project where I need to get the lowercase of the county
variable in a dataset alike to the example below (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=="AL"])
Error in get(as.character(FUN), mode = "function", envir = envir) :
object 'f' of mode 'function' was not found
>
correlfile$county[correlfile$state=="AL"]=CapLeading(correlfile$county[correlfile$state=="AL"])
System specs involved
R version 2.9.2
cwhmisc package version 2.1
OS - Redhat Enterprise Linux version 5.5
Another strange thing that seems to happen is that when I open R in a
different working directory of the server, the lowerize function works
without giving this error, for a short while. Before long, it begins giving
the aforementioned error message again.
I haven't found anything in the archives on this so I turn to the R-listers.
Any ideas on why this keeps happening would be very helpful!
Thanks!
Adrienne Wootten
Graduate Research Assistant
State Climate Office of North Carolina
North Carolina State University
[[alternative HTML version deleted]]
______________________________________________
[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
and provide commented, minimal, self-contained, reproducible code.