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

New Post: New to R - simple question of retrieving values

$
0
0
Thanks again

I finally got it working in two lines like this
                NumericVector  _pVal = r.Evaluate("z$p.value").AsNumeric();
                double pVal = _pVal[0];
I guess everything is a vector (even scalars) and you just have to know how many elements are in the vector.
Hope this helps other new users like myself

This was also helpful as I was unaware of the C# type var which is implicit typing. I was under the belief that everything needed to be explicitly typed.

Viewing all articles
Browse latest Browse all 1634

Trending Articles



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