我已经在 Excel 中实现了一些机器学习功能,因此,我使用了 RExcel 插件。现在我正在尝试根据某些输入数据来预测类。此输入数据是用 Excel 编写的。宏读取此输入数据并将其转换为 R,后者对这些数据进行分类。我必须对全部包含 4 个变量的 3000 条记录进行分类。
如果我使用一个小的 (n<999) 数据集,该函数可以正常工作。但如果数据集的 n>1000 RExcel 给出以下错误:
Rexcel Error 1301
in module RExcel.Arrays
Workbook file name or sheet name to long,
"[file.xlsm]sheet1" has more than 54 characters.
我阅读了以下评论中的数据:
private sub commandbutton.click()
Dim test As Range,
Set test = Range(CalcProbs.testData)
.....
call Classifydata(test)
end sub
Function classifydata(test as Range)
....
rinterface.PutDataframe "test", test
....
end function
使用 CalcProbs.testData 作为 refEdit。
有人知道函数 rinterface.PutDataFrame 是否仅适用于有限大小的数据,还是我的代码有问题?