Sorry if this has been asked before. I am fairly new to R, and strugling a tad with formulating the question correctly.
I have two dataframes imported from a csv, looking similar to this:
df1:
date time vdd temp seat volume output
... ... 1.8 25 1 ... ...
... ... 1.8 -40 0 ... ...
... ... ... ... ... ... ...
And
df2:
seat temp vdd noise
0 -40 1.8 5.3E-09
1 25 1.8 4.9E-09
. . . .
I want the second dataframe to work as a lookup table, to create a new column in the first dataframe, producing a result like this:
df1:
date time vdd temp seat volume output noise
... ... 1.8 25 1 ... ... 4.9E-09
... ... 1.8 -40 0 ... ... 5.3E-09
... ... ... ... ... ... ... ...
I have tried looking at merge and match, but I can't wrap my head around how to produce the result I want.
Thanks for any help I can get.