mardi 21 avril 2015

R and scala: scala get R variable

import org.ddahl.jvmr.RInScala
object Birt_obj {
   def main(args: Array[String]) {
        R> """ 
        ...
        Rstr2 =(as.matrix(Rstr1))"""

       //var resultArray : Array[String] = Array()
    }

}

result:

  [,1]
1    2
2    2
5   12
6    4
7    1
8   12

I want to know how can scala get the variable Rstr2 and save in array ??

Aucun commentaire:

Enregistrer un commentaire