Package org.rosuda.REngine

Examples of org.rosuda.REngine.REXPList


    if (object instanceof Object[])
    {
      Object[] array = (Object[])object;
      if (array.length == 0)
      {
        return new REXPList(new RList());
      }
      else if (array[0] instanceof String)
      {
        String[] strings = ListUtils.copyStringArray(array, new String[array.length]);
        return new REXPString(strings);
View Full Code Here


        ret[j * nrow + i] = mat[i][j];
      }
    }
    RList rlist = new RList();
    rlist.put("dim", new REXPInteger(new int[] { nrow, ncol }));
    REXPList attrs = new REXPList(rlist);
    return new REXPDouble(ret, attrs);
  }
View Full Code Here

TOP

Related Classes of org.rosuda.REngine.REXPList

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.