Thanks again
I finally got it working in two lines like this
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.
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.