我想将 zTree 主题数据文件(quetionaire)导入 R,我正在使用Oliver Kirchkamp 编写的 zTreeSbj 函数:
files <- list.files(pattern = "*.sbj$",recursive=TRUE)
fname <- sub(".*/","",files)
sbj <- zTreeSbj(aggregate(files,list(fname),function(x) x[1])$x)
我收到以下错误:
reading 1 ...
Error in file(filename, "r", encoding = getOption("zTree.encoding")) :
invalid 'description' argument
Called from: file(filename, "r", encoding = getOption("zTree.encoding"))