[R] Problem with a Matrix

Hamada Elsayed Ali medo_botany at hotmail.com
Thu Mar 8 10:20:42 CET 2012


Dear All,

I have a problem in making a matrix from a data. I did a summary data from a
big data frame using (ddply), the resulting table is like that:

Site.No    Plant.Name    Cover.Percentage
1                XXX                15
1                YYY                 20
2                XXX                18
2                YYY                 21
3                XXX                14
3                YYY                 26

I need to convert it to the following:

        XXX      YYY
1      15        20
2      18        21
3      14        26

I tried for the whole day yesterday but I can't solve it. Could you please
help me.

Thanks in advance for all of you,
Hamada

--
View this message in context: http://r.789695.n4.nabble.com/Problem-with-a-Matrix-tp4455954p4455954.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list