fslaborg / RProvider

Access R packages from F#
http://fslab.org/RProvider/
Other
235 stars 69 forks source link

Tutorial doesn't work? #174

Closed masq6r closed 8 years ago

masq6r commented 8 years ago

Hi,

I'm following the "Quickstart: Using Statistical Packages", and everything works fine until I tried let coefficients = result.AsList().["coefficients"].AsNumeric(), where the result is let result = R.lm(formula = "Y~X1+X2", data = dataset).

The compiler then complains because AsList() is not defined. Did I miss something or is the tutorial wrong? Thank you.

tpetricek commented 8 years ago

This is an extension method defined (I think) in R.NET, so you need:

open RDotNet

(And probably also open RProvider, just in case...). I think this should work, so I'll close this, but please reopen it if it does not.