Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Use R result in Sagemath

Hi!

I'm new in Sagemath, but I've some experience using R. For example, if I want to generate 100 random numbers from a Bernoulli distribution, I can use the code:

r.rbinom(n=100,size=1,prob=0.25)

But... Is there any way to use the result for another operation in Sagemath? And results related to a linear regression, a given test or a plot (done with R)? May it be more efficient to use Scipy in a general workflow?

Thanks for your answers!

Use R result in Sagemath

Hi!

I'm new in Sagemath, but I've some experience using R. For example, if I want to generate 100 random numbers from a Bernoulli distribution, I can use the code:

r.rbinom(n=100,size=1,prob=0.25)

But... Is there any way to use the result for another operation in Sagemath? And results related to a linear regression, a given test or a plot (done with R)? May it be more efficient to use Scipy in a general workflow?

Thanks for your answers!