How to add a new row in to an existing data set in R Language?
Hi,
Have you read the documentation for merge? The relevant section says
" If 'all.x' is true, all the non matching cases of 'x' are appended
to the result as well, with 'NA' filled in the corresponding
columns of 'y'; analogously for 'all.y'."
Please do get in the habit of reading the documentation before posting
on the mailing list.
Best,
Ista
On Wed, Oct 3, 2012 at 7:30 AM, killerkarthick <karthick.gdi at gmail.com> wrote:
Hi... I have one 2 data set with 3 variables and 4 observations. I want to combine the two data sets. I tried with merge but it gives only the common values. I need common values and and remaining values also. Please help me? this is my data set dataset:1 name va1 va2 AA 10 100 BB 20 200 CC 30 300 DD 40 400 dataset:2 name va1 va2 AA 36 444 BB 10 111 CC 20 222 DD NA 333 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-tp4644855.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.