Re: [R] rbind a heterogeneous row

2011-03-22 Thread Henrique Dallazuanna
You need a list object indeed of a vector, try this: rbind(df, dreps = c(rep(list(TRUE), 7), 5, 0)) On Tue, Mar 22, 2011 at 10:12 PM, Alexy Khrabrov wrote: > I have a dataframe with many rows like this: > >> df >                 X1   X2   X3   X4   X5   X6   X7 week         d > sim1 FALSE TRUE T

[R] rbind a heterogeneous row

2011-03-22 Thread Alexy Khrabrov
I have a dataframe with many rows like this: > df X1 X2 X3 X4 X5 X6 X7 week d sim1 FALSE TRUE TRUE TRUE TRUE TRUE TRUE1 0.3064985 sim1 is the rowname, X1..X7,week,d are the column names. X1..X7 are factors, booleans in this case. I need to add another r