Re: [R] Delete/insert rows in data matrix

2008-01-31 Thread ronggui
How about this: > DF<-data.frame(x=1:3,y=2:4) > DF[4,]<-c(4,5) > DF x y 1 1 2 2 2 3 3 3 4 4 4 5 > DF<-DF[,-4] > DF x y 1 1 2 2 2 3 3 3 4 4 4 5 On 1/31/08, Eleni Christodoulou <[EMAIL PROTECTED]> wrote: > Hello all, > > I have the following problem. I want to insert blank rows in an data fra

[R] Delete/insert rows in data matrix

2008-01-31 Thread Eleni Christodoulou
Hello all, I have the following problem. I want to insert blank rows in an data frame so as to make it comparable with another data frame with more rows. How can I insert these rows? If this is not solvable, then, alternatively, is it easy to delete rows from a data frame? Thanks for helping, Ele