Operators

RProvider includes the RProvider.Operators module, which contains custom operators that can make working with R easier. Make sure to open it alongside your packages:

open RProvider
open RProvider.Operators

open RProvider.``base``
open RProvider.datasets
open RProvider.stats

Accessing members / slots

You can use the dynamic (?) operator to access:

  • Slots in S4 objects
  • Members of list types

List: accessing named columns in a dataframe.

R.mtcars?mpg

S4 object: access a slot

let x = R.rnorm(100)
x.Engine.Evaluate("setClass('testclass', representation(foo='character', bar='integer'))")

let test = x.Engine.Evaluate("new('testclass', foo='s4', bar=1:4)")

test?foo
namespace RProvider
Multiple items
namespace RProvider

--------------------
type RProvider = inherit TypeProviderForNamespaces new : cfg:TypeProviderConfig -> RProvider

--------------------
new : cfg:CompilerServices.TypeProviderConfig -> RProvider
module Operators from RProvider
<summary> Custom operators that make composing and working with R symbolic expressions easier. </summary>
namespace RProvider.datasets
namespace RProvider.stats
type R = static member AirPassengers : SymbolicExpression static member BJsales : SymbolicExpression static member BJsales_lead : SymbolicExpression static member BOD : SymbolicExpression static member CO2 : SymbolicExpression static member ChickWeight : SymbolicExpression static member DNase : SymbolicExpression static member EuStockMarkets : SymbolicExpression static member Formaldehyde : SymbolicExpression static member HairEyeColor : SymbolicExpression ...
Base R datasets.
property R.mtcars: RDotNet.SymbolicExpression with get
val x : RDotNet.SymbolicExpression
type R = static member AIC :?object: obj *?___: obj *?k: obj *?paramArray: obj [] -> SymbolicExpression + 2 overloads static member ARMAacf :?ar: obj *?ma: obj *?lag_max: obj *?pacf: obj -> SymbolicExpression + 2 overloads static member ARMAtoMA :?ar: obj *?ma: obj *?lag_max: obj -> SymbolicExpression + 2 overloads static member BIC :?object: obj *?___: obj *?paramArray: obj [] -> SymbolicExpression + 2 overloads static member Box_test :?x: obj *?lag: obj *?type: obj *?fitdf: obj -> SymbolicExpression + 2 overloads static member C :?object: obj *?contr: obj *?how_many: obj *?___: obj *?paramArray: obj [] -> SymbolicExpression + 2 overloads static member D :?expr: obj *?name: obj -> SymbolicExpression + 2 overloads static member DF2formula :?x: obj *?env: obj -> SymbolicExpression + 2 overloads static member Gamma :?link: obj -> SymbolicExpression + 2 overloads static member HoltWinters :?x: obj *?alpha: obj *?beta: obj *?gamma: obj *?seasonal: obj *?start_periods: obj *?l_start: obj *?b_start: obj *?s_start: obj *?optim_start: obj *?optim_control: obj -> SymbolicExpression + 2 overloads ...
R statistical functions.
R.rnorm(paramsByName: List<string * obj>) : RDotNet.SymbolicExpression
R.rnorm(paramsByName: System.Collections.Generic.IDictionary<string,obj>) : RDotNet.SymbolicExpression
R.rnorm(?n: obj,?mean: obj,?sd: obj) : RDotNet.SymbolicExpression
No documentation available
property RDotNet.SymbolicExpression.Engine: RDotNet.REngine with get
RDotNet.REngine.Evaluate(stream: System.IO.Stream,?environment: RDotNet.REnvironment) : RDotNet.SymbolicExpression
RDotNet.REngine.Evaluate(statement: string,?environment: RDotNet.REnvironment) : RDotNet.SymbolicExpression
val test : RDotNet.SymbolicExpression