Quantcast
Channel: R.NET
Viewing all articles
Browse latest Browse all 1634

New Post: Could Not Find Function "sd" Error in C#

$
0
0
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:
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.

Viewing all articles
Browse latest Browse all 1634

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>