/swish/pack/rserve_client/prolog/r/r_data.pl
All Application Manual Name SummaryHelp

  • prolog
    • r
      • r_call.pl -- R plugin for SWISH
      • r_serve.pl -- SWI-Prolog Rserve client
      • r_grammar.pl -- R parser primitives
      • r_term.pl -- Translate a Prolog term into an R expression
      • r_expand_dot.pl
      • r_data.pl -- R data frame handling
        • r_data_frame/3
        • r_data_frame_to_dicts/2
        • r_data_frame_to_rows/3
        • r_data_frame_from_dicts/2
        • r_data_frame_from_rows/2
        • r_data_frame_colnames/2
        • r_data_frame_rownames/2
      • r_sandbox.pl -- Declare the R API safe
 r_data_frame(+Rvar, +Columns, :Goal) is det
Create an R data.frame from the solutions of Goal. The resulting data frame is bound to the R variable Rvar. For example:
?- r_data_frame(movieyear,
                [movie=Name, year=Year],
                movie(Name, Year)).
Arguments:
Rvar- is the name of the R output variable
Columns- is a list Name=Var