参考Using R to write a .mat file not giving the right output?中的答案, 我正在尝试将数据帧格式数据转换为MATLAB,但这些错误消息得到满足:
Error in writeFieldNames(names(structure), maxLength = 32) :
4 arguments passed to .Internal(nchar) which requires 3
下面的代码示例可以重现错误:
col1 <- c("BW90N01920_01720_01320_00440_00960_00860_01320_00440_0_0")
col2 <- c("S03_M1746")
df <- data.frame(col1, col2)
library(R.matlab)
writeMat("df.mat", x = df)
有人知道如何解决这个错误吗?