how to export vector variables and other data structures into R as variables?

asked 2013-07-23 20:17:43 +0100

anonymous user

Anonymous

updated 2013-07-23 20:18:05 +0100

All the examples I kind find here and in the documentation pass data from sage to R to be used once. I'd like to pass data that's in a sage (python) variable and turn it into an R variable that I can subsequntly use in %r codeblocks.

simple stuff like r.set('x', [1,2,3]) doesn't work because set expects a string. I could turn vectors into strings before passing them to set, but that's kind of klugy (and could be a pain for more complicated things.

edit retag flag offensive close merge delete