【问题标题】:Error: Workbook file name or sheet name to long, "file" has more than 54 characters错误:工作簿文件名或工作表名过长,“文件”超过 54 个字符
【发布时间】:2015-06-12 10:51:21
【问题描述】:

我已经在 Excel 中实现了一些机器学习功能,因此,我使用了 RExcel 插件。现在我正在尝试根据某些输入数据来预测类。此输入数据是用 Excel 编写的。宏读取此输入数据并将其转换为 R,后者对这些数据进行分类。我必须对包含 4 个变量的 3000 条记录进行分类。

如果我使用一个小的 (n1000 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 是否只适用于有限大小的数据,还是我的代码有问题?

【问题讨论】:

    标签: r vba excel rexcel


    【解决方案1】:

    已经发现问题了。 我用较短的名称保存了 Excel 文件,它运行良好。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2018-11-27
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2022-12-08
      相关资源
      最近更新 更多