Package org.rosuda.JRI

Examples of org.rosuda.JRI.REXP.asStringArray()


            System.out.println("Result = "+e+", running eval");
            long r=re.rniEval(e, 0);
            System.out.println("Result = "+r+", building REXP");
            REXP x=new REXP(re, r);
            System.out.println("REXP result = "+x);
            String s[]=x.asStringArray();
            if (s!=null) {
                int i=0; while (i<s.length) { System.out.println("["+i+"] \""+s[i]+"\""); i++; }
            }
        }
        {
View Full Code Here


            System.out.println("Result = "+e+", running eval");
            long r=re.rniEval(e, 0);
            System.out.println("Result = "+r+", building REXP");
            REXP x=new REXP(re, r);
            System.out.println("REXP result = "+x);
            String s[]=x.asStringArray();
            if (s!=null) {
                int i=0; while (i<s.length) { System.out.println("["+i+"] \""+s[i]+"\""); i++; }
            }
        }
        {
View Full Code Here

    }

    public static String[] evalStrings(String evalstr) {
        REXP x = getRengine().eval(evalstr);

        if (x != null && x.asStringArray() != null) {
            return x.asStringArray()
        }
        return null;
    }
 
View Full Code Here

    public static String[] evalStrings(String evalstr) {
        REXP x = getRengine().eval(evalstr);

        if (x != null && x.asStringArray() != null) {
            return x.asStringArray()
        }
        return null;
    }
 
    public static String evalString(String evalstr) {
View Full Code Here

    }
 
    public static String evalString(String evalstr) {
        REXP x = getRengine().eval(evalstr);

        if (x != null && x.asStringArray() != null) {
            return x.asStringArray()[1]
        }
        return "lala";
    }
 
View Full Code Here

 
    public static String evalString(String evalstr) {
        REXP x = getRengine().eval(evalstr);

        if (x != null && x.asStringArray() != null) {
            return x.asStringArray()[1]
        }
        return "lala";
    }
 
    public static double[] evalDoubles(String evalstr) {
View Full Code Here

            System.out.println("Result = "+e+", running eval");
            long r=re.rniEval(e, 0);
            System.out.println("Result = "+r+", building REXP");
            REXP x=new REXP(re, r);
            System.out.println("REXP result = "+x);
            String s[]=x.asStringArray();
            if (s!=null) {
                int i=0; while (i<s.length) { System.out.println("["+i+"] \""+s[i]+"\""); i++; }
            }
        }
        {
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.