#6489: [with patch, work in progress ...] Allow Sage to call R (statistics)
-------------------------+--------------------------------------------------
Reporter: sjanke | Owner: mhampton
Type: enhancement | Status: new
Priority: major | Milestone: sage-feature
Component: statistics | Keywords: statistics, R,
Reviewer: | Author: Scott Janke
Merged: |
-------------------------+--------------------------------------------------
Here we have the start of a "bridge" between Sage and R.
The R c language api is used to call R functions from Python.
This code mostly handles converting between Sage (Python) and R types.
The way it works is Python calls the callTypedArgs function defined in
this module, passing in the name of the R function to call, a string
specifying types of the parameters the function expects and what the
function returns, then a list of Python Objects (such Sage integers, or
vectors or matrices) for the parameters. R_bridge then creates the
equivalent simple expressions in R for the passed Python objects, calls
the given function in R, and then converts back from the returned R simple
expression to a Python Object.
The way to expose R's functionality nicely in Sage using this is then to
create a Sage file (like statistics.py) that uses R_bridge to call R
functions. This file would wrap up the ugly parameter and return type
specifier string.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/6489>
Sage <http://sagemath.org/>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en
-~----------~----~----~----~------~----~------~--~---