Displaying 2 results from an estimated 2 matches for "updatenlm".
Did you mean:
updatenlme
2012 Apr 05
1
reclaiming lost memory in R
...on
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 "ret"
}
The problem is that, memoryHogFunction uses a lot of memory, and at the end returns a result (which is not big) but the memory used by the...
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",