[R] sample
Uwe Ligges
ligges at statistik.uni-dortmund.de
Fri Feb 11 08:54:22 CET 2005
T. Murlidharan Nair wrote:
> I am trying to sample a subset from a matrix using sample.
> The size of the matrix is 20X 1532. It works fine with this,
> but when I transpose the matrix and try to sample it, it returns
> null. pick.set<-sample(tissue.exp.t,5,replace=FALSE,prob=NULL)
>
> Is there something that I am missing here ? Thanks ../Murli
Yes: tissue.exp.t is not a matrix.
Check it with, e.g., str().
Uwe Ligges
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide!
> http://www.R-project.org/posting-guide.html
More information about the R-help
mailing list