Examples of rniPutString()


Examples of org.rosuda.JRI.Rengine.rniPutString()

   
    // Part 2 - low-level API - for illustration purposes only!
    //System.exit(0);
   
        // simple assignment like a<-"hello" (env=0 means use R_GlobalEnv)
        long xp1 = re.rniPutString("hello");
        re.rniAssign("a", xp1, 0);

        // Example: how to create a named list or data.frame
        double da[] = {1.2, 2.3, 4.5};
        double db[] = {1.4, 2.6, 4.2};
View Full Code Here

Examples of org.rosuda.JRI.Rengine.rniPutString()

        // we could use assign and then eval "b<-data.frame(b)", but for now let's build it by hand:      
        String rn[] = {"1", "2", "3"};
        long xp7 = re.rniPutStringArray(rn);
        re.rniSetAttr(xp5, "row.names", xp7);
       
        long xp6 = re.rniPutString("data.frame");
        re.rniSetAttr(xp5, "class", xp6);
       
        // assign the whole thing to the "b" variable
        re.rniAssign("b", xp5, 0);
       
View Full Code Here

Examples of org.rosuda.JRI.Rengine.rniPutString()

   
    // Part 2 - low-level API - for illustration purposes only!
    //System.exit(0);
   
        // simple assignment like a<-"hello" (env=0 means use R_GlobalEnv)
        long xp1 = re.rniPutString("hello");
        re.rniAssign("a", xp1, 0);

        // Example: how to create a named list or data.frame
        double da[] = {1.2, 2.3, 4.5};
        double db[] = {1.4, 2.6, 4.2};
View Full Code Here

Examples of org.rosuda.JRI.Rengine.rniPutString()

        // we could use assign and then eval "b<-data.frame(b)", but for now let's build it by hand:      
        String rn[] = {"1", "2", "3"};
        long xp7 = re.rniPutStringArray(rn);
        re.rniSetAttr(xp5, "row.names", xp7);
       
        long xp6 = re.rniPutString("data.frame");
        re.rniSetAttr(xp5, "class", xp6);
       
        // assign the whole thing to the "b" variable
        re.rniAssign("b", xp5, 0);
       
View Full Code Here

Examples of org.rosuda.JRI.Rengine.rniPutString()

   
    // Part 2 - low-level API - for illustration purposes only!
    //System.exit(0);
   
        // simple assignment like a<-"hello" (env=0 means use R_GlobalEnv)
        long xp1 = re.rniPutString("hello");
        re.rniAssign("a", xp1, 0);

        // Example: how to create a named list or data.frame
        double da[] = {1.2, 2.3, 4.5};
        double db[] = {1.4, 2.6, 4.2};
View Full Code Here

Examples of org.rosuda.JRI.Rengine.rniPutString()

        // we could use assign and then eval "b<-data.frame(b)", but for now let's build it by hand:      
        String rn[] = {"1", "2", "3"};
        long xp7 = re.rniPutStringArray(rn);
        re.rniSetAttr(xp5, "row.names", xp7);
       
        long xp6 = re.rniPutString("data.frame");
        re.rniSetAttr(xp5, "class", xp6);
       
        // assign the whole thing to the "b" variable
        re.rniAssign("b", xp5, 0);
       
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.