Package org.renjin.primitives.matrix

Examples of org.renjin.primitives.matrix.StringMatrixBuilder


    return constructMatrix(numRows, cells, fields);
  }

  protected static SEXP constructMatrix(int numRows, Map<Cell, String> cells,
      List<String> fields) {
    StringMatrixBuilder matrix = new StringMatrixBuilder(numRows, fields.size());
    for(int row=0;row!=numRows;++row) {
      for(int col=0; col!=fields.size();++col) {
        String value = cells.get(new Cell(row, fields.get(col)));
        matrix.setValue(row, col, value);
      }
    }
    matrix.setColNames(fields);
    return matrix.build();
  }
View Full Code Here

TOP

Related Classes of org.renjin.primitives.matrix.StringMatrixBuilder

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.