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

2012-10-05 Thread Ista Zahn
Hi, On Fri, Oct 5, 2012 at 12:27 AM, killerkarthick wrote: > Hi Ista Zahn, > Thanks for your advice. Please see the > following Image. > > > > > To me this example looks plain wrong. You end up with a row that co

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

2012-10-05 Thread arun
-project.org Cc: Sent: Friday, October 5, 2012 2:18 AM Subject: Re: [R] How to add a new row in to an existing data set in R Language? Thanks for your answer Arun, That above imageĀ  shows the merge in SAS but its possible as same in R please reply me let me know? -- View this message in context: http

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

2012-10-04 Thread PIKAL Petr
Hi ?merge or ?rbind Regards Petr > -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- > project.org] On Behalf Of killerkarthick > Sent: Friday, October 05, 2012 6:39 AM > To: r-help@r-project.org > Subject: [R] How to add a new row in t

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

2012-10-04 Thread killerkarthick
Thanks for your answer Arun, That above image shows the merge in SAS but its possible as same in R please reply me let me know? -- View this message in context: http://r.789695.n4.nabble.com/How-to-merge-data-set-in-R-Language-tp4644855p4645119.html Sent from the R help mailing list archive at

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

2012-10-04 Thread killerkarthick
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 drugchange 101 P 18 102 P 14 103 D 12 104 D 18 105 P 10 This is the data set. So

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

2012-10-04 Thread killerkarthick
Hi Ista Zahn, Thanks for your advice. Please see the following Image. i am expecting the result should same in the image. -- View this message in context: http://r.78969

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

2012-10-03 Thread Ista Zahn
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

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

2012-10-03 Thread killerkarthick
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 nameva1 va2 AA 10 100 BB