我想查看列中的不同项目,但出现以下错误:
rcaller.exception.RCallerParseException:未找到变量 data_item
以下是我使用的代码:
code.addRCode("data<-read.csv(x)");/*x is the path of the file*/
code.addRCode("data_item=unique(unlist(data$ITEM,use.names=FALSE))");
caller.setRCode(code);
caller.runAndReturnResult("data_item");
String []s=caller.getParser().getAsStringArray("data_item");