[R] Labeling matrix data

Roger Peng rpeng at stat.ucla.edu
Tue Apr 30 08:56:34 CEST 2002


Try 

?as.matrix

-roger
_______________________________
UCLA Department of Statistics
rpeng at stat.ucla.edu
http://www.stat.ucla.edu/~rpeng

On Tue, 30 Apr 2002, hkimscil wrote:

> Hello all -
> 
> I am sorry if this simple question is addressed in somewhere else. But, I couldn't find it. It's been for about a week using R. . . 
> 
> My problem is: 
> 
> Reading matrix data with "scan" does not seem to allow me to incorporate matrix labels (columns, and rows). 
> 
> If I use read.table, I can import the lables. But, the problem is, I don't know how I make this data as matrix. 
> 
> I'd really appreciate any help, and will keep diggin the manual for more information.
> 
> Regrads, 
> 
> -hyo
> Hyo Kim, student
> Communicaiton Department 
> Rutgers, New Jersey, US
> hkimscil at scils.rutgers.edu
> -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
> r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
> Send "info", "help", or "[un]subscribe"
> (in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
> _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
> 

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list