Hello, I have installed the nlme package, but every time I try to use the function "summary.lme," I get a message that the function cannot be found. I've tried to install the package several times and have re-started R several times, but to no avail. I have also loaded the lme4 package, in case that makes a difference. I'm using R on a brand new Mac. Thank you!
On Nov 17, 2010, at 4:39 PM, Joanna Geller wrote:> Hello, > > I have installed the nlme package, but every time I try to use the > function "summary.lme,"How did you "try to use it"?> I get a message that the function cannot be > found.If it says it cannot be found, then you quite possibly forgot to load the "lme4" package. Try: require(lme4) If you have an object "obj1" of class "lme" then typing: summary(obj1) will be dispatched by the R interpreter to apply the summary.lme function to that object. Functions like summary() are called "generic". They are really underneath the hood actually a collection of functions. For summary you can see the ones that are currently loaded by typing: methods(summary)> I've tried to install the package several times and have > re-started R several times, but to no avail. I have also loaded the > lme4 package, in case that makes a difference. I'm using R on a brand > new Mac. > > Thank you!David Winsemius, MD West Hartford, CT
On Nov 17, 2010, at 4:48 PM, David Winsemius wrote:> > On Nov 17, 2010, at 4:39 PM, Joanna Geller wrote: > >> Hello, >> >> I have installed the nlme package, but every time I try to use the >> function "summary.lme," > > How did you "try to use it"? > >> I get a message that the function cannot be >> found. > > > If it says it cannot be found, then you quite possibly forgot to > load the "lme4" package.(or the nlme package) Try: require(nlme) -- David Winsemius, MD West Hartford, CT
Did you load the package in R? Sounds like you didn't. Try require(nlme) Another possibility is that that function is hidden. Just to be sure, are you should be using it like this summary(mod) Not like this summary.lme(mod) HTH Gavin Sent from my HTC ----- Reply message ----- From: "Joanna Geller" <joanna.d.geller@gmail.com> Date: Wed, Nov 17, 2010 21:39 Subject: [R] Problem with nlme package To: <r-help@r-project.org> Hello, I have installed the nlme package, but every time I try to use the function "summary.lme," I get a message that the function cannot be found. I've tried to install the package several times and have re-started R several times, but to no avail. I have also loaded the lme4 package, in case that makes a difference. I'm using R on a brand new Mac. Thank you! ______________________________________________ R-help@r-project.org 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. [[alternative HTML version deleted]]