Merge two data frames together that have the same variable names and data types

Posted by Brandon on Stack Overflow See other posts from Stack Overflow or by Brandon
Published on 2010-06-14T19:42:03Z Indexed on 2010/06/14 19:52 UTC
Read the original article Hit count: 199

Filed under:

I have tried the merge function to merge two csv files that I imported. They both have the same variable names and data types but each time I run merge all that I get is an object that contains the names of the two data frames. I have tried the following:

# ex1
obj <- merge(obj1, obj2, by=obj)
# ex2
obj <- merge(obj1, obj2, all)

and several other iterations of the above.

Is merge the correct function? If so, what am I doing wrong?

© Stack Overflow or respective owner

Related posts about r