I have a table like this:

Date TIME  Q

A     a    1
A     b    2
A     c    3  
B     a    4
B     b    5
B     c    6
C     a    7
C     b    8
C     c    9

I want use R language to turn it to a matrix like :
    a  b  c 
A  1  2  3
B  4  5  6
C  7  8  9


I am new to R , anyone can help? Thanks in advance! have a table like this:

Date TIME  Q

A     a    1
A     b    2
A     c    3  
B     a    4
B     b    5
B     c    6

-- 
View this message in context: 
http://r.789695.n4.nabble.com/from-table-to-matrix-tp3087972p3087972.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to