search for: listucrmodel

Displaying 1 result from an estimated 1 matches for "listucrmodel".

Did you mean: listucrmodels
2011 Oct 12
2
goofy class question
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, ...) if (length(objects) == 0) NULL else objects[sapply(objects, function(.x) "ucr"== (class(eval(parse(text=.x), envir=envir))[2]))] } > listucrModels() [1] NA NA NA...