[R] apply a function to loop through
kevinvol2002 at yahoo.com
Tue Jul 17 20:38:49 CEST 2007
Dear R users,
I have a dataset generated as follows,
myDat <- data.frame(matrix(c(rep(LETTERS[1:3],
There is one level "gene1" in $Grp in my data step.
I'd like to do pairwise.wilcox.test on $tissue while
going throug $Grp if there are more levels with gene2,
I tried to loop through $Grp using apply with an error
message "Error in sort(unique.default(x), na.last =
'x' must be atomic".
mytry <- apply(as.matrix(myDat),
p.adjust.method = "none")$p.value)
I could not find any similar stuffs in forum. Could
anyone here give a hand?
Thanks a bunch.
More information about the R-help