Script:
~addons/finance/finexec/rstats/rinterface.ijs
Contributor: William Szuch
Updated: 2023 04 09
Depend: R statitical package
Rserve.exe package
~addons/stats/r/rserve.ijs
Definitions: loaded to locale base
Status: done
Script source:
rinterface.ijs
The interface definition is an example only and
requires to be
modified for the R Stats package installation.
See the source code: ~addons/finance/fp/rstats/rinterface.ijs
Example definition:
rinterface =: 3 : 0
fork_jtask_ ‘C:/Program Files/R/R-4.2.3/bin/x64/Rserve.exe’
)
Tools for interfacing J with the statisical
package R.
The interface is made through the Rserve.exe package.
For details see:
J
interface to R
Definitions
rinterface (monad)
Form: explicit
Example only - definition requires to be modified.
Creates the interface between J and R.
Syntax
rinterface ''
Example
rinterface ''
Testing the interface of J with R.
Rget 'pi'
3.14159
Rget 'rnorm(5)'
0.141088 _0.116309 _1.08985 _0.902064 _0.150221
Rget 'R.Version()'