search for: genset1

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

2010 Jul 08
2
random sample from arrays
...c(1:50)){ set[i] <-sample(x,50) print(c(i,"->", set), quote = FALSE) } which basically do the trick, but I just can't save the results outside the loop. After having the random sets of lines it wasn't a problem to extract the line from the arrays using subset. genSet1 <-sample(x,50) random1 <- genes %in% genSet1 subsetGenelist <- subset(genelist, random1) is there a different way of creating these random vectors or saving the loop results outside tjhe loop so I cn work with them? Thanks a lot Assa [[alternative HTML version deleted]]