Package com.github.rcaller.datatypes
Class DataFrame
- java.lang.Object
-
- com.github.rcaller.datatypes.DataFrame
-
public class DataFrame extends Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DataFramecreate(int n, int m)create an empty DataFrame with the dimensions of n*mstatic DataFramecreate(Object[][] objects, String[] names)Object[]getColumn(int i)String[]getNames()intgetNumberOfColumns()intgetNumberOfRows()ObjectgetObject(int n, int m)Object[][]getObjects()Object[]getRow(int i)
-
-
-
Method Detail
-
create
public static DataFrame create(int n, int m)
create an empty DataFrame with the dimensions of n*m- Parameters:
n- is the number of columnsm- is the number of rows- Returns:
- an empty data frame of the dimension n x m
-
getColumn
public Object[] getColumn(int i)
-
getRow
public Object[] getRow(int i)
-
getObjects
public Object[][] getObjects()
-
getNames
public String[] getNames()
-
getNumberOfColumns
public int getNumberOfColumns()
-
getNumberOfRows
public int getNumberOfRows()
-
getObject
public Object getObject(int n, int m)
-
-