x.sage() works great too! On Apr 13, 12:20 pm, ablondin <alexandre.blondin.ma...@gmail.com> wrote: > I answered myself. > It suffices to call sageobj on it. > > sage: x = r.c([1,2,3]) > sage: x > [1] 1 2 3 > sage: list(x) > [[1] 1, [1] 2, [1] 3] > sage: > sage: > sage: > sage: sageobj(x) > [1, 2, 3] > sage: type(sageobj(x)) > <type 'list'> > > Thanks anyway ! > > On 13 avr, 10:23, ablondin <alexandre.blondin.ma...@gmail.com> wrote: > > > Dear Sage community, > > I'm trying to use the R interface (which means I have to learn R as > > well) and it's not going too bad, but I have no idea how I can > > transform an R object (a vector) to get the associated list. For > > instance, if I type > > sage: x = r.c([1,2,3]) > > sage: x > > [1] 1 2 3 > > sage: list(x) > > [[1] 1, [1] 2, [1] 3] > > > I would like the output not to be a list with R objects as its > > elements, but simply a list. Is that possible ? > > > Thanks ! > > > Alex
-- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org To unsubscribe, reply using "remove me" as the subject.