On 11/23/2016 12:12 AM, Franco Masotti wrote:
> Hello Nicos,
>
> Yes, what you're saying is correct. I've opted for the first solution,
> that is
> using member/2 to return element by element.
> Now I have to study cuts and negations (chaper 10 - LPN)
> in order to avoid all extra answers.
The idea behind r_data_frame/3 is to turn the implicit table
behind the solutions of a goal into an R data frame. The
idea behind that is that you have a dataset loaded as RDF or
plain Prolog, you define some relation r(X,Y,...) over it and
than use r_data_frame/3 to generate an R version of the
r/n relation as a data set and use R processing on that.
Cheers --- Jan