Examples of rniPutStringArray()


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

        long la[] = {xp3, xp4};
        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"};
View Full Code Here

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

        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);
        re.rniSetAttr(xp5, "row.names", xp7);
       
        long xp6 = re.rniPutString("data.frame");
        re.rniSetAttr(xp5, "class", xp6);
       
View Full Code Here

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

        long la[] = {xp3, xp4};
        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"};
View Full Code Here

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

        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);
        re.rniSetAttr(xp5, "row.names", xp7);
       
        long xp6 = re.rniPutString("data.frame");
        re.rniSetAttr(xp5, "class", xp6);
       
View Full Code Here

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

        finishedPercentage = 0.4f;

        rEngine.eval("dataset <- apply(dataset, 2, as.numeric)");

        // Assign row names to the data set
        long rows = rEngine.rniPutStringArray(rowNames);
        rEngine.rniAssign("rowNames", rows, 0);
        rEngine.eval("rownames(dataset)<-rowNames");

        // Assign column names to the data set
        long columns = rEngine.rniPutStringArray(colNames);
View Full Code Here

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

        long rows = rEngine.rniPutStringArray(rowNames);
        rEngine.rniAssign("rowNames", rows, 0);
        rEngine.eval("rownames(dataset)<-rowNames");

        // Assign column names to the data set
        long columns = rEngine.rniPutStringArray(colNames);
        rEngine.rniAssign("colNames", columns, 0);
        rEngine.eval("colnames(dataset)<-colNames");

        finishedPercentage = 0.5f;
View Full Code Here

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

        long la[] = {xp3, xp4};
        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"};
View Full Code Here

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

        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);
        re.rniSetAttr(xp5, "row.names", xp7);
       
        long xp6 = re.rniPutString("data.frame");
        re.rniSetAttr(xp5, "class", xp6);
       
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.