[R] Create 2d table with mean of entries

sugimoto ieyasu at sugimoto.at
Thu Oct 7 13:40:17 CEST 2010


Hi,

I have the following problem:
I have a list of entries with vehicles going from some places to others and
the time that they need.
e.g.
Vehicle Start End Time
    1        A       B    5
    2        A       C    4
    3        A       C    3
    4        B       A    6
    5        B       C    4
    6        B       C    6
    7        C       B    2
    8        C       B    4
    9        A       B    7

What I need is a 2d table with the average time needed from Start to End,
e.g.
        A       B       C
A     NA     6       3.5
B     6        NA    5
C    NA     3       NA


Any help would be very much appreciated,
Sugi
-- 
View this message in context: http://r.789695.n4.nabble.com/Create-2d-table-with-mean-of-entries-tp2966610p2966610.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list