Re: [R] groupedData function not found

From: Andrew Robinson <A.Robinson_at_ms.unimelb.edu.au>
Date: Fri, 28 Dec 2007 10:59:32 +1100

Hi Andrea,

did you try

require(nlme)

? Adding a package is not necessarily the same as loading it.

Cheers

Andrew

On Thu, Dec 27, 2007 at 10:42:27PM +0000, andrea previtali wrote:
>
> Hello,
> I'm trying to use the groupedData function and R is giving me the message: Error: can not find function "groupedData"
> The code is coming from a textbook so I think it should be correct:
>
> pigs<-data.frame(cbind(pig.time,pig.id,pig.wt))
> pig.growth<-groupedData(pig.wt~pig.time|pig.id,data=pigs)
>
> I have added the package "nlme" and to confirm that it was installed correctly I requested the list of functions included in the package (library(help=nlme)) and I do see groupData in the list.
> I am using R 2.6.1 in Windows XP.
>
> I'll appreciate your help.
> Thanks,
> Andrea Previtali
> Post-doc fellow
> Dept. of Biology,
> Univ. of Utah, SLC, UT.
>
> ______________________________________________
> R-help_at_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.
>
> --
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.

-- 
Andrew Robinson  
Department of Mathematics and Statistics            Tel: +61-3-8344-9763
University of Melbourne, VIC 3010 Australia         Fax: +61-3-8344-4599
http://www.ms.unimelb.edu.au/~andrewpr
http://blogs.mbs.edu/fishing-in-the-bay/

______________________________________________
R-help_at_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.
Received on Fri 28 Dec 2007 - 20:25:11 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 28 Dec 2007 - 22:30:21 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.