Re: [R] goofy class question

2011-10-12 Thread Barry Rowlingson
On Wed, Oct 12, 2011 at 8:46 AM, Erin Hodgess wrote: > Dear R People: > > Here is a really goofy question. > > I have some objects which have 2 classes: data.frame and ucr. > > Also, the classes will always be in that order. > > I have tried all sorts of things, but to no avail. > > listucrModels

Re: [R] goofy class question

2011-10-12 Thread Joshua Wiley
names(lapply(.GlobalEnv, function(x) inherits(x, "ucr"))) HTH, Josh On Wed, Oct 12, 2011 at 12:46 AM, Erin Hodgess wrote: > Dear R People: > > Here is a really goofy question. > > I have some objects which have 2 classes: data.frame and ucr. > > Also, the classes will always be in that order. >

[R] goofy class question

2011-10-12 Thread Erin Hodgess
Dear R People: Here is a really goofy question. I have some objects which have 2 classes: data.frame and ucr. Also, the classes will always be in that order. I have tried all sorts of things, but to no avail. listucrModels <- function(envir=.GlobalEnv, ...) { objects <- ls(envir=envir, ...