[R] how to add two data.frame with the same column but different row numbers

From: zhenjiang xu <zhenjiang.xu_at_gmail.com>
Date: Fri, 15 Apr 2011 16:31:16 -0400

Hi all,

Suppose I have 2 data.frame , a and b, how can I add them together to get c? Thanks
> a

a 1
b 2
c 3

> b

a 6
c 1

> c

a 7
b 2
c 4


	[[alternative HTML version deleted]]

R-help_at_r-project.org mailing list
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Received on Fri 15 Apr 2011 - 20:35:39 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 15 Apr 2011 - 22:00:32 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive