[R] Creating a matrix

SP&BM sandra_peneda at hotmail.com
Wed Oct 8 22:03:31 CEST 2008


Good evening.

I have this following table and I would like to turn it into a matrix in
which my rows would be filled with de "Sellers", my columns with my
"Articles" and my data would be the mean unitary price used by each seller
in each produt.

    Seller  Art.     Unit Price
1   v1       p1     9.148352
2   v2       p1     2.858073
3   v3       p1     3.775315
4   v4       p1     9.821429
5   v3       p1     3.286827
6   v5       p2    11.105769

This is only the head of a table with more than 400.000 lines, 6.000 sellers
and 4500 produts.
Can anybody help me in suh a task considered very difficult by someone that
has heard about R only a few hours?

Thank you!
SPBM 

-- 
View this message in context: http://www.nabble.com/Creating-a-matrix-tp19886510p19886510.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list