[R] convert matrix
Elham -
ed_isfahani at yahoo.com
Sat Oct 29 18:19:58 CEST 2016
Dear Madam / Sir,I saw this function for "Convert to matrix as it is that you wanted" > test2<-as.matrix(test1)
> colnames(test2)<-NULL
> genelist<-c("Fkh2","Swi5","Sic1")
> rownames(test2)<-genelist
> test2
> # [,1] [,2] [,3]
> #Fkh2 0.141 0.242 0.342
> #Swi5 0.224 0.342 0.334
> #Sic1 0.652 0.682 0.182
what is function for large data?my data and genelist are 28031 rows,how can I convert? clear that I can not write 28031 genes like genelist<-c("Fkh2","Swi5","Sic1")
Your attention would be really appreciated.Best Regards,Elham Dalalbshi Esfahani
[[alternative HTML version deleted]]
More information about the R-help
mailing list