Class Experiment.Table

java.lang.Object
com.eco.bio7.simulation.Experiment.Table
Enclosing class:
Experiment

public static final class Experiment.Table extends Object
The result of an experiment: a row for each recorded step of each run.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    double[]
    column(String name)
    The values of a numeric column (NaN: missing or not a number).
    The columns (in the order of their first appearance).
    csv()
    The table as CSV (comma separated, a header, NA for missing values).
    The rows (column -> value; a missing value: null).
    save(String file)
    Saves the table as a CSV file: an absolute path or a path relative to the project of the model (the folder of the workspace for Bio7 models).
    int
    The number of rows.
    boolean
    toR(String name)
    The table as a data frame with the name in R (Bio7 with a running R; the names of the columns are kept).
     

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • Table

      public Table()
  • Method Details

    • columns

      public List<String> columns()
      The columns (in the order of their first appearance).
    • rows

      public List<Map<String,Object>> rows()
      The rows (column -> value; a missing value: null).
    • size

      public int size()
      The number of rows.
    • column

      public double[] column(String name)
      The values of a numeric column (NaN: missing or not a number).
    • csv

      public String csv()
      The table as CSV (comma separated, a header, NA for missing values).
    • save

      public File save(String file) throws IOException
      Saves the table as a CSV file: an absolute path or a path relative to the project of the model (the folder of the workspace for Bio7 models). Returns the file.
      Throws:
      IOException
    • toR

      public boolean toR(String name) throws Exception
      The table as a data frame with the name in R (Bio7 with a running R; the names of the columns are kept). Returns false if R is not running.
      Throws:
      Exception
    • toString

      public String toString()
      Overrides:
      toString in class Object