Skip to content
Prev 314352 / 398502 Next

How to multiple the vector and variables from dataframe

At Sun, 30 Dec 2012 18:26:45 +0800 (CST),
meng wrote:
You could convert the data frame to a matrix:
x1 x2
1  1 11
2  2 12
3  3 13
x1 x2
[1,]  3 22
[2,]  4 36
[3,]  9 26

Neal