【发布时间】:2015-12-18 11:58:52
【问题描述】:
使用 R.NET 创建S4 object 时(mirt 包中函数的输出。
engine.Evaluate("library(mirt); data(LSAT6); x=mirt(LSAT6,1)");
S4Object Convertedinput = inputtoCsharp.AsS4();
我需要将 x 的输出(x 的所有插槽)显示到消息框中。
我该怎么做?
因为没有这样的方法:
int[] resp_c = new int [] {1,1,1,1};
**IntegerVector resp_cR = engine.CreateIntegerVector(resp_c);**
engine.SetSymbol("resp_c", resp_cR);
engine.Evaluate("ff=fscores(x, response.pattern=resp_c)");
上面的事情是针对整数向量完成的。我需要对 R 中的 S4 object 进行相同的模拟。
我怎样才能做到这一点?
【问题讨论】: