Examples of rniSetAttr()


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

        long xp5 = re.rniPutVector(la);

        // now let's add names
        String sa[] = {"a","b"};
        long xp2 = re.rniPutStringArray(sa);
        re.rniSetAttr(xp5, "names", xp2);

        // ok, we have a proper list now
        // 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);
View Full Code Here

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

        // ok, we have a proper list now
        // 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
View Full Code Here

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

        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.rniSetAttr()

        long xp5 = re.rniPutVector(la);

        // now let's add names
        String sa[] = {"a","b"};
        long xp2 = re.rniPutStringArray(sa);
        re.rniSetAttr(xp5, "names", xp2);

        // ok, we have a proper list now
        // 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);
View Full Code Here

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

        // ok, we have a proper list now
        // 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
View Full Code Here

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

        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.rniSetAttr()

        long xp5 = re.rniPutVector(la);

        // now let's add names
        String sa[] = {"a","b"};
        long xp2 = re.rniPutStringArray(sa);
        re.rniSetAttr(xp5, "names", xp2);

        // ok, we have a proper list now
        // 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);
View Full Code Here

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

        // ok, we have a proper list now
        // 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
View Full Code Here

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

        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.