Ask Your Question

Revision history [back]

Passing array from sage to R and back again

Good Morning

I am trying to pass data from sage to R and then received the result back y=asarray(y) r.install_packages('"ismev"') r.library('ismev') gv=r.get_fit('y') gv

I have tried various ways to do this but non of them work Has anyone else managed to do this?

Thanks for any help

By the way to get install_packages to work you need to do sage -f r from a terminal after installing sage. I think this could be added to the documentation.

click to hide/show revision 2
No.2 Revision

Passing array from sage to R and back again

Good Morning

I am trying to pass data from sage to R and then received the result back back

y=asarray(y)
r.install_packages('"ismev"')
r.library('ismev')
gv=r.get_fit('y')
gv

gv

I have tried various ways to do this but non of them work Has anyone else managed to do this?

Thanks for any help

By the way to get install_packages to work you need to do sage -f r from a terminal after installing sage. I think this could be added to the documentation.