[R] read a file into a matrix

Steve Lianoglou mailinglist.honeypot at gmail.com
Fri Nov 20 18:55:24 CET 2009


> read.delim gives me a data.frame. Is there a function that can return
> the result in a matrix rather than data.frame?

m <- as.matrix(read.delim(..))

-steve

--
Steve Lianoglou
Graduate Student: Computational Systems Biology
   |  Memorial Sloan-Kettering Cancer Center
   |  Weill Medical College of Cornell University
Contact Info: http://cbio.mskcc.org/~lianos/contact




More information about the R-help mailing list