I work with R on my Java programs, and I need to use some statistical tests like anova.
But I do not know how to save the results of R in a file to manage them later in Java.
I am trying RCaller and rJava to join R and Java, but I think the problem is not to join R and Java.
Does anyone know what I can do?
Example:
I have this dataset in a csv file:
growth,sugar 75,C 72,C 73,C 61,F 67,F 64,F 62,S 63,S
So, I run these commands in R:
your.data=read.csv("/Users/kakius82/Desktop/anovaDataset.csv") attach(your.data) your.aov=aov(growth~sugar) summary(your.aov)
And the results are as follows:
Df Sum Sq Mean Sq F value Pr(>F) sugar 2 187.71 93.85 20.26 0.004 ** Residuals 5 23.17 4.63 --- Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
How to save these results to manage them later?
source share