Hi "somebody"
I hope this helps:
df1<-data.frame(cbind(va=runif(3), vb=runif(3)))
df1
df2<-data.frame(cbind(va=runif(3), vb=runif(3)))
df2
df.blank<-data.frame(cbind(va=NA, vb=NA))
df.blank
df.join<-rbind(df1, df.blank, df2)
df.join
Miltinho astronauta
brazil
On 7/25/08, naw3@duke.edu <naw3@duke.edu> wrote:>
> Hi,
>
> I'm sorry if this is a simple question. How do you insert a blank row
into
> a
> data frame? I basically need to do this:
>
> old table: new table:
>
> C1 C2 C3 C1 C2 C3
> 1 32 34 1 32 34
> 2 52 23 54
> 2 52 23
>
> ______________________________________________
> R-help@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>
[[alternative HTML version deleted]]