Re: [R] double-indexed list

2010-05-08 Thread jim holtman
Here is an example list of data. You would access it by: x[[day]][[hour]] instead of how you mentioned in your email. > # create a list of 3 days and 3 hours to show how the list would look > set.seed(1) > x <- vector('list', 3) # top level is day > for (day in 1:3){ + for (hour in 1:3){

[R] double-indexed list

2010-05-07 Thread Remi SoftR
Dear all, d, d=1,...,10 is a day, h, h=1,...,24 is an hour and tt_dh(1),tt_dh(2),... is the arrival time of the 1st, 2nd etc client on day d during hour h. How can I make a double-indexed list ldh (indices are d and h) such that ldh[[d,h]] gives me arrival times? Many thanks, Remi [[alte