标签: r
我正在努力做这个简单的乘法,我想将矩阵元素乘以常量:
mydata <- read.csv("c:/mydata.csv",header=F,dec=",") 5*mydata[1,3]
我收到以下错误:
Warning message: In Ops.factor(mydata[1, 3], 0.1) : ‘*’ not meaningful for factors
代码有什么问题?