Using the built-in R tool in Prolog

I know using the "real" package we can use the built-in R in Prolog. But I ran into problems for using this package. And I haven't found any simple examples of using this package.

Can someone give a simple example of this package?

eg. Loading Prolog values ​​onto R variables and subsequent calls of R-functions on these values ​​(generating a graph using the R function or something else).

+3


source to share


1 answer


The syntax is the same as the SWISH version, I think just take a look here:

http://swish.swi-prolog.org/example/Rserve.swinb



and

http://swish.swi-prolog.org/example/Rdataframe.swinb

+2


source







All Articles