Dear: I am trying to merge two tables by a common variable. However, there are a few same variables which are in both of two tables. How can I take them away when I merge the two tables? Thanks! Xin
jim holtman
2009-May-13 00:01 UTC
[R] how to take away the same varible when I use "merge"
Can you provide commented, minimal, self-contained, reproducible code. You can check out 'duplicated' to remove duplicates. On Tue, May 12, 2009 at 7:06 AM, Xin Shi <jasonshi510@hotmail.com> wrote:> Dear: > > > > I am trying to merge two tables by a common variable. However, there are a > few same variables which are in both of two tables. How can I take them > away > when I merge the two tables? > > > > Thanks! > > > > Xin > > > > > > > > > ______________________________________________ > 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<http://www.r-project.org/posting-guide.html> > and provide commented, minimal, self-contained, reproducible code. > >-- Jim Holtman Cincinnati, OH +1 513 646 9390 What is the problem that you are trying to solve? [[alternative HTML version deleted]]