search for: otherparamet

Displaying 3 results from an estimated 3 matches for "otherparamet".

Did you mean: otherparams
2012 Apr 05
1
reclaiming lost memory in R
...ve 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) ... fit <- try(updatenlme(otherInitialValues) ... ret <- fit ( and other things) return a result "r...
2012 Apr 01
1
R process taking over memory
...on one of those calls was about 40GB!) and not returning an answer. Other datasets work fine. I am trying to debug nlme by varying its parameters but I have a general question in the interim. I have the following situation: for i in (1:N) { dataset <- createDataset(i) try(nlme(dataset, otherParameters)) } If one of those datasets starts using, say more than 2GB of memory I would like to just stop nlme, get an error, record it, and move on with the next dataset. Right now with some datasets nlme takes over the computer memory and the system ends up killing the entire process. Any suggestion...
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",