search for: mysplitvar

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

2009 Dec 08
1
problem with split eating giga-bytes of memory
...t is not. instead, when I try to split selectSubAct.df on one of its factors with 1473 levels, my memory is slowly gobbled up (plus 3 GB of swap) until I cancel the operation. Any ideas on what might be happening? Thanks, Mark myDataFrame <- data.frame(matrix(LETTERS, ncol = 7, nrow = 399000)) mySplitVar <- factor(as.character(1:1400)) myDataFrame <- cbind(myDataFrame, mySplitVar) object.size(myDataFrame) ## 12860880 bytes # ~ 13MB myDataFrame.split <- split(myDataFrame, myDataFrame$mySplitVar) object.size(myDataFrame.split) ## 144524992 bytes # ~ 144MB object.size(selectSubAct.df) ## 52,3...