Re: [sage-support] Re: examples of using R

2010-01-29 Thread Ondrej Certik
Hi, On Fri, Jan 29, 2010 at 5:27 AM, kcrisman wrote: > Another thing you can do is type r.?  and you will get a lot of > commands which "should work".  In my experience, though, it's not > always obvious how to use every command - sometimes arguments in R > need to be input as strings, for instan

[sage-support] Re: examples of using R

2010-01-29 Thread kcrisman
Another thing you can do is type r.? and you will get a lot of commands which "should work". In my experience, though, it's not always obvious how to use every command - sometimes arguments in R need to be input as strings, for instance, though definitely not always. On the plus side, the R help

[sage-support] Re: examples of using R

2010-01-29 Thread jpc
Hi, I've search on http://rpy.sourceforge.net/ and use R with commands inside a Sage script as following: from sage.all import * def iunif(a,b): return Integer(fround(r.runif(1,RDF(a),RDF(b)),0)) def runif(a,b,prec): return RDF(fround(r.runif(1,RDF(a),RDF(b)),prec)) def rbernoulli():

[sage-support] Re: examples of using R

2010-01-28 Thread Gokhan Sever
On Jan 28, 8:00 pm, Ondrej Certik wrote: > Hi, > > are there some examples how to use R from Sage? > > I tried to search here: > > http://www.sagemath.org/help.html > > http://www.sagemath.org/doc/reference/ > > I also tried to search sage-devel, for "R" and "R statistics" and "R > statistical",