search for: memoryhogfunction

Displaying 2 results from an estimated 2 matches for "memoryhogfunction".

2012 Apr 05
1
reclaiming lost memory in R
Dear list, I am trying to reclaim what I think is lost memory in R, I have been using gc(), rm() and also using Rprof to figure out where all the memory is going but I might be missing something. I have the following situation basic loop which calls memoryHogFunction: for i in (1:N) { dataset <- generateDataset(i) fit <- try( memoryHogFunction(dataset, otherParameters)) } and within memoryHogFunction <- function(dataset, params){ fit <- try(nlme(someinitialValues) ... fit <- try(updatenlme(otherInitialValues) ... f...
2012 Mar 25
2
avoiding for loops
I have data that looks like this: > df1 group id 1 red A 2 red B 3 red C 4 blue D 5 blue E 6 blue F I want a list of the groups containing vectors with the ids. I am avoiding subset(), as it is only recommended for interactive use. Here's what I have so far: df1 <- data.frame(group=c("red", "red", "red", "blue",