search for: somecalc

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

1999 Mar 10
2
.Alias and memory
.../class in Splus I defined the functions tfclass <- class "tfclass<-" <- function(x, value){ class(x) <- value ; x } and also the function classed <- function(x, cls) {class(x) <- cls; x} This last allows me to end a function definition with ... classed(somecalc, "whatever") } rather than ... obj <- somecalc class(obj) <- "whatever" obj } Unfortunately, these seem to increase my memory usage in R substantially. Using tfclass <- .Alias(class) "tfclass<-" <- .Alias(get("class<-"))...