Displaying 1 result from an estimated 1 matches for "column2list".
2010 Nov 17
1
efficient conversion of matrix column rows to list elements
...d speed the
process up if there was a more direct way to convert the columns of combn()
to elements of a single list. Any constructive suggestions will be greatly
appreciated. Thanks for your consideration,
C
code:
------------
unionIndependant <- function(outcomes) {
intsctn <- c()
column2list <- function(x){list(x)}
pb <-
ProgressBar(max=length(outcomes),stepLength=1,newlineWhenDone=TRUE)
for (i in 2:length(outcomes)){
increase(pb)
outcomes_ <- apply(combn(outcomes,i),2,column2list)
for (j in 1:length(outcomes_)){outcomes_[[j]] <-
outcomes_[[j...