Package org.rosuda.REngine

Examples of org.rosuda.REngine.REXPGenericVector


    return namevalues2rexp(names, rexps);
  }

  /** Convert name value pairs to R expression. */
  private static REXP namevalues2rexp(String[] names, REXP[] rexps) {
    return new REXPGenericVector(new RList(rexps, names));   
  }
View Full Code Here


  private static REXP list2rexp(Collection<?> list) {
    List<REXP> rexps = new ArrayList<REXP>(list.size());
    for(Object o : list) {
      rexps.add(jobj2rexp(o));
    }
    return new REXPGenericVector(new RList(rexps));
  }
View Full Code Here

      try {

        // why rserve only return REXPGenericVector, not REXPList
        if (rdata instanceof REXPGenericVector) {
          StringBuffer sb = new StringBuffer();
          REXPGenericVector list = (REXPGenericVector) rdata;

          handleList(list, sb, isTerminate);

          myagg.values = sb.toString();
View Full Code Here

TOP

Related Classes of org.rosuda.REngine.REXPGenericVector

Copyright © 2018 www.massapicom. 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.