[R] How to add a new row in to an existing data set in R Language?

PIKAL Petr petr.pikal at precheza.cz
Fri Oct 5 08:55:25 CEST 2012


Hi

?merge or ?rbind

Regards
Petr

> -----Original Message-----
> From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-
> project.org] On Behalf Of killerkarthick
> Sent: Friday, October 05, 2012 6:39 AM
> To: r-help at r-project.org
> Subject: [R] How to add a new row in to an existing data set in R
> Language?
> 
> Hi.................
> I have one dataset with 3 variables with 4 observations. I want to add
> the some more observation into the existing dataset.
> Data;Mydata
> center	drug	change
> 101	P	18
> 102	P	14
> 103	D	12
> 104	D	18
> 105	P	10
>  This is the data set. So I want to add some more rows to the existing
> dataset that rows are
> 106	P	17
> 107	D	18
> 108	D	NA
> 109	P	13
> 110	P	12
> Without using any combine functions. This is possible?
> Please reply me...................................
> 
> 
> 
> --
> View this message in context: http://r.789695.n4.nabble.com/How-to-add-
> a-new-row-in-to-an-existing-data-set-in-R-Language-tp4645114.html
> Sent from the R help mailing list archive at Nabble.com.
> 
> ______________________________________________
> R-help at 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.




More information about the R-help mailing list