Displaying 1 result from an estimated 1 matches for "bhvs".
Did you mean:
bhs
2011 Dec 20
1
Convert ragged list to structured matrix efficiently
...have 24GB of memory so can
load it) but it takes a LONG time to run the code on a large dataset. I
was wondering if anyone had any tips or tricks that may make this run
faster?
Below is some sample code of what ive been doing, (in the full version i
use snowfall to spread the work via sfSapply)
bhvs <- c(1,2,3,4,5,6)
ragged.list <- list('23' = c(13,4,5,6,3,65,67,2),
'34' = c(1,2,3,4,56,7,8),
'45' = c(5,6,89,87,56))
# Define the matrix to store results
cluster.data <- as.data.frame(matrix(0, length(bhvs), nrow =
length(ra...