Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>The source code dissapears if I use strings as R code from high level interface</p> <p>using this code for the third block</p> <pre><code>ro.r.assign('val', val) ro.r.assign('exp', exp) ro.r.assign('tiempo', tiempo) ro.r('anova &lt;- aov(val ~ tiempo + exp)') ro.r('s.anova &lt;- summary(anova)') ro.r('spHoc &lt;- summary(glht(anova, linfct=mcp(tiempo="Dunnet")))') print ro.r('s.anova') print ro.r('spHoc') ro.r('capture.output(s.anova, file = "anova.txt", append = TRUE)') ro.r('capture.output(spHoc, file = "anova.txt", append = TRUE)') </code></pre> <p>Returns the results without the source code</p> <pre><code> Df Sum Sq Mean Sq F value Pr(&gt;F) tiempo 5 91172 18234 8.788 0.000464 *** exp 3 49402 16467 7.936 0.002108 ** Residuals 15 31125 2075 --- Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1 Simultaneous Tests for General Linear Hypotheses Multiple Comparisons of Means: Dunnett Contrasts Fit: aov(formula = val ~ tiempo + exp) Linear Hypotheses: Estimate Std. Error t value Pr(&gt;|t|) 2 - 0 == 0 78.10 32.21 2.425 0.10306 5 - 0 == 0 152.39 32.21 4.731 0.00110 ** 10 - 0 == 0 140.06 32.21 4.348 0.00246 ** 15 - 0 == 0 158.90 32.21 4.933 &lt; 0.001 *** 30 - 0 == 0 180.73 32.21 5.611 &lt; 0.001 *** --- Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1 (Adjusted p values reported -- single-step method) </code></pre> <p>I still don't know why rpy2 behaves like this when I use low level interface, but now It works</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload