我试图将R中的两个数据帧相乘。我试图将该行乘以第二个数据帧的相应列。
Chicken()
> df1
Per_Day_Wage
[1] Jhon 25
[2] Sam 65
[3] Bob 16
[4] Laurance 14
> df2
Jhon Sam Bob Laurance
[1] Jan 15 18 26 89
[2] Feb 19 25 68 25
[3] Mar 79 251 89 82
[4] Apr 49 85 26 15
[5] May 12 25 68 25
[6] Jun 98 251 75 82
[7] Jul 25 558 85 33
[8] Aug 15 25 68 25
[9] Sep 12 89 8 82
[10] Oct 25 558 85 33
[11] Nov 19 95 19.8 89
[12] Dec 15 85 98 85
无效df1 %*% df2
。