search for: old_class

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

Did you mean: led_class
2010 Oct 23
1
Plans for tighter integration of reference classes in R.
...t yet). Would it be possible, some day, to use refObjects as parent.env or function's environment without "loosing the class"? Parenthetically, the attributes of an object (including S3 classes) are not lost: > env <- structure(new.env(), a1 = "fdsf", class = "old_class") > tf <- function(x)x > environment(tf) <- env > environment(tf) <environment: 056570a0> attr(,"a1") [1] "fdsf" attr(,"class") [1] "old_class" > class(environment(tf)) [1] "old_class" > Thanks, Vitalie.