I Develop a Simple program using RDotNet in C#.
I got "sd" function not found error. Can you give me some tips for solve this problem?
function "sd" is in "stats" package that is default library.
I already reinstall R(R-3.1.0-win.exe) again and again.
attached Error message and code as below.
"Error: could not find function "sd"
at RDotNet.REngine.Parse(String statement, StringBuilder incompleteStatement)
at RDotNet.REngine.<Defer>d__0.MoveNext()
at System.Linq.Enumerable.LastOrDefault[TSource](IEnumerable`1 source)
at RDotNet.REngine.Evaluate(String statement)"
The code as follow:
I got "sd" function not found error. Can you give me some tips for solve this problem?
function "sd" is in "stats" package that is default library.
I already reinstall R(R-3.1.0-win.exe) again and again.
attached Error message and code as below.
"Error: could not find function "sd"
at RDotNet.REngine.Parse(String statement, StringBuilder incompleteStatement)
at RDotNet.REngine.<Defer>d__0.MoveNext()
at System.Linq.Enumerable.LastOrDefault[TSource](IEnumerable`1 source)
at RDotNet.REngine.Evaluate(String statement)"
The code as follow:
NumericVector group1 = regine.CreateNumericVector(examples);
regine.SetSymbol("group1",group1);
NumericVector STDResult = regine.Evaluate("sd(group1)").AsNumeric();
double[] arrSTD = STDResult.ToArray();
STD = arrSTD[0];
Thanks a lot.