Skip to content

Rows function in nlme package

4 messages · Ross Darnell, Paul Murrell, Deepayan Sarkar

#
The Rows function which is called from plot.compareFits in the nlme package
is not found.
Error in plot.compareFits(compareFits(coef(bp.model3), coef(bp.model3M))) : 
	couldn't find function "Rows"
Can I find it elswhere? Have I missed a required package?


Thanks

Ross Darnell
nlme            Linear and nonlinear mixed effects models

Description:

Package: nlme
Version: 3.1-17
Date: 2001/08/26
Priority: recommended
Title: Linear and nonlinear mixed effects models
Author: Jose Pinheiro <jcp at research.bell-labs.com>,
        Douglas Bates <bates at stat.wisc.edu>,
        Saikat DebRoy <saikat at stat.wisc.edu>, and
        Deepayan Sarkar <deepayan at stat.wisc.edu> 
Maintainer: Douglas Bates <bates at stat.wisc.edu>
Description: Fit and compare Gaussian linear and nonlinear mixed-effects models.
Depends: nls, R(>= 1.3.0)
License: GPL version 2 or later
Built: R 1.3.0; i686-pc-linux-gnu; Fri Aug 31 17:45:56 CDT 2001
_                
platform i686-pc-linux-gnu
arch     i686             
os       linux-gnu        
system   i686, linux-gnu  
status                    
major    1                
minor    3.1              
year     2001             
month    08               
day      31               
language R
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
#
Ross Darnell <ross at turing.une.edu.au> writes:
[...]

After further hunting I realise  this is probably part of the "Trellis" 
package that is seem being brewed.

Sorry to answer my own query.

Ross Darnell


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
#
Hi
package
coef(bp.model3M))) :
It does appear that Rows() is part of Trellis in S-Plus (given that the
example for rows is a Trellis-related example), which means that you have
probably correctly guessed why it is not in R (because it is not in the
lattice package which we are "brewing").

OTOH, Rows() does not seem like a very hard function to replicate.  It would
appear that ...

    Rows(x, index)

... is basically just doing ...

    lapply(x, "[", index)

... so you could fix the code yourself if you feel keen.  In the longer
term, a fix will need changes to either nlme or lattice, at least one of
which will hopefully occur by the end of the year.

Paul


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
#
--- Paul Murrell <p.murrell at auckland.ac.nz> wrote:
Actually, lattice DOES have the Rows() function
(precisely because it is very commonly used in
Trellis code), though it is not well documented.

In fact, if you want to use (most of) the plot
functions in nlme, you would have to have grid and
lattice installed (both under development), not only
Rows().

Deepayan


__________________________________________________



-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._