In R, i have 2 data frames "df1" and "df2". The df1 and df2 are as follows.
>df1
date value
1 1990-10-10 3
2 1990-10-11 2.3
3 1990-10-12 2.5
>df2
date value
1 1990-10-10 3
2 1990-10-11 2
3 1990-10-12 2
I need a third data frame "df3", that contains the same column names as df1 and df2. But the value field should be the product of values in df1 and df2. I am expecting the following output
>df3
date value
1 1990-10-10 9
2 1990-10-11 4.6
3 1990-10-12 4
Is it possible in R?