[R] Data.frames with different line's length

2005-06-21 Thread João Mendes Moreira
Hello, I want to create a data.frame with different number of columns per line. What I want is something like: example - NULL begin - 1 while (end nrow(orig.data)) { end - next.day(orig.data,begin) # my own function. It returns the first index from the next day. Each day has a different

Re: [R] Data.frames with different line's length

2005-06-21 Thread Petr Pikal
Hi from help page Details: A data frame is a list of variables of the same length with unique ^^ row names, given class 'data.frame'. So you need to use a different sructure (e.g.list) or you have to ensure that you rbind