[R] merge 2 data.frames in dependence of 2 values

2014-11-13 Thread Matthias Weber
Hello togehter, i have a little problem. Maybe anyone can help me. I have 2 data.frames, which look like as follows: First: NAMEMONTH BONUS 1 Andy 2014-10 100 2 Pete 2014-10200 3 Marc2014-10300 4 Andy2014-11400

Re: [R] merge 2 data.frames in dependence of 2 values

2014-11-13 Thread Rui Barradas
Hello, See ?merge, in particular the argument 'all'. dat1 - read.table(text = NAMEMONTH BONUS 1 Andy 2014-10 100 2 Pete 2014-10200 3 Marc2014-10300 4 Andy2014-11400 , header = TRUE, stringsAsFactors = FALSE)

Re: [R] merge 2 data.frames in dependence of 2 values

2014-11-13 Thread William Dunlap
merge(df1, df2, all=TRUE) Bill Dunlap TIBCO Software wdunlap tibco.com On Thu, Nov 13, 2014 at 6:02 AM, Matthias Weber matthias.we...@fntsoftware.com wrote: Hello togehter, i have a little problem. Maybe anyone can help me. I have 2 data.frames, which look like as follows: First:

Re: [R] merge 2 data.frames in dependence of 2 values

2014-11-13 Thread Michael Dewey
On 13/11/2014 14:02, Matthias Weber wrote: Hello togehter, i have a little problem. Maybe anyone can help me. I think you might find ?merge enlightening Indeed given that the word merge occurs in your subject line and your text it is surprising you have not already found it. I have 2