[R] Can not find lme

Jeff Newmiller jdnewmil at dcn.davis.ca.us
Wed Aug 8 09:07:21 CEST 2012


Perhaps you should read the help for that package, where you would 
discover that it does not contain an "lme" function.

library(help="lme4")

You could type

help.search("lme")

and discover that there is an "lme" function in the "nlme" package.  At 
that point you could perhaps confirm what you really want to do.

You might also want to avoid calling your data "data", since that is the 
name of a builtin function.

Also, many useRs recommend against the use of the "attach" function (at 
all), instead preferring the use of "data=" arguments to functions such as 
lme, or directly using the $ operator to specify the data frame and 
column.  The "attach" function can easily leads to subtle confusions in 
data names.

It is even possible that next time you might read the posting guide and 
post in plain text.

On Wed, 8 Aug 2012, Santini Silvana wrote:

> Dear all,
> Can anyone help me, my R software can not run a nested linear regression by using the lme funcion. The message that appears is??
> Error: could not find function "lme"
> I already downloaded and loaded the package, please see below. Thank you in advance for any help! Nadia.
>
>> data<-read.csv("/Users/nadiasan1/Desktop/MOE and MOR.csv")> attach(data)> names(data)[1] "Species" "LME" ?? ?? "LMR" ?? ?? "WD" ?? ????> install.packages("lme4")trying URL 'http://cran.csiro.au/bin/macosx/leopard/contrib/2.14/lme4_0.999375-42.tgz'Content type 'application/x-gzip' length 1453067 bytes (1.4 Mb)opened URL==================================================downloaded 1.4 Mb
>
> The downloaded packages are in	/var/folders/yx/l4kkhz8j24179y5vq0hp9md00000gp/T//Rtmpqsa0o1/downloaded_packagesalso installing the dependencies ???mlmRev???, ???MEMSS???, ???sfsmisc???, ???MatrixModels???
> trying URL 'http://cran.csiro.au/bin/macosx/leopard/contrib/2.14/mlmRev_1.0-1.tgz'Content type 'application/x-gzip' length 1832388 bytes (1.7 Mb)opened URL==================================================downloaded 1.7 Mb
> trying URL 'http://cran.csiro.au/bin/macosx/leopard/contrib/2.14/MEMSS_0.9-0.tgz'Content type 'application/x-gzip' length 236762 bytes (231 Kb)opened URL==================================================downloaded 231 Kb
> trying URL 'http://cran.csiro.au/bin/macosx/leopard/contrib/2.14/sfsmisc_1.0-19.tgz'Content type 'application/x-gzip' length 386160 bytes (377 Kb)opened URL==================================================downloaded 377 Kb
> trying URL 'http://cran.csiro.au/bin/macosx/leopard/contrib/2.14/MatrixModels_0.3-1.tgz'Content type 'application/x-gzip' length 204787 bytes (199 Kb)opened URL==================================================downloaded 199 Kb
> trying URL 'http://cran.csiro.au/bin/macosx/leopard/contrib/2.14/lme4_0.999375-42.tgz'Content type 'application/x-gzip' length 1453067 bytes (1.4 Mb)opened URL==================================================downloaded 1.4 Mb
>
> The downloaded packages are in	/var/folders/yx/l4kkhz8j24179y5vq0hp9md00000gp/T//Rtmpqsa0o1/downloaded_packagesLoading required package: MatrixLoading required package: lattice
> Attaching package: ???Matrix???
> The following object(s) are masked from ???package:base???:
> ?? ?? det
>
> Attaching package: ???lme4???
> The following object(s) are masked from ???package:stats???:
> ?? ?? AIC, BIC
> starting httpd help server ... done> model1<-lme(LME~WD, random=~1|Species, ML)Error: could not find function "lme"
>
>
> 	[[alternative HTML version deleted]]
>
>

---------------------------------------------------------------------------
Jeff Newmiller                        The     .....       .....  Go Live...
DCN:<jdnewmil at dcn.davis.ca.us>        Basics: ##.#.       ##.#.  Live Go...
                                       Live:   OO#.. Dead: OO#..  Playing
Research Engineer (Solar/Batteries            O.O#.       #.O#.  with
/Software/Embedded Controllers)               .OO#.       .OO#.  rocks...1k



More information about the R-help mailing list