org.af.jhlir.call
Interface RDataFrame<WRAPPED_TYPE>

Type Parameters:
WRAPPED_TYPE - underlying type of the used back-end, see RObj
All Superinterfaces:
RObj<WRAPPED_TYPE>
All Known Subinterfaces:
RDataFrameRef<WRAPPED_REF,RESOLVED_TYPE>

public interface RDataFrame<WRAPPED_TYPE>
extends RObj<WRAPPED_TYPE>

Interface for a RDataFrame Object that extends RObj.


Method Summary
 Object get(int row, int col)
          Returns the element at the specified position in this data frame.
 RObj getCol(int i)
           
 RVectorFactor getCol(String name)
           
 int getColIndex(String name)
          Returns the index of the column with the specified name in this data frame, or -1 if this data frame does not contain such a column.
 String getColName(int i)
          Returns the name of the specified column.
 String[] getColNames()
          Returns the names of the columns.
 List<String> getColNamesAsList()
          Returns the names of the columns.
 int getColumnCount()
          Returns the number of columns in the data frame.
 int getRowCount()
          Returns the number of rows in the data frame.
 int getRowIndex(String name)
          Returns the index of the row with the specified name in this data frame, or -1 if this data frame does not contain such a row.
 String getRowName(int i)
          Returns the name of the specified row.
 String[] getRowNames()
          Returns the names of the rows.
 List<String> getRowNamesAsList()
          Returns the names of the rows.
 
Methods inherited from interface org.af.jhlir.call.RObj
asRChar, asRDataFrame, asREnvironment, asRFactor, asRInteger, asRList, asRLogical, asRMatrixDouble, asRNumeric, asS3Obj, getWrapped
 

Method Detail

getRowCount

int getRowCount()
Returns the number of rows in the data frame.

Returns:
the number of rows in the data frame

getColumnCount

int getColumnCount()
Returns the number of columns in the data frame.

Returns:
the number of columns in the data frame

getRowNames

String[] getRowNames()
Returns the names of the rows.

Returns:
the names of the rows

getColNames

String[] getColNames()
Returns the names of the columns.

Returns:
the names of the columns

getRowNamesAsList

List<String> getRowNamesAsList()
Returns the names of the rows.

Returns:
the names of the rows

getColNamesAsList

List<String> getColNamesAsList()
Returns the names of the columns.

Returns:
the names of the columns

getRowName

String getRowName(int i)
Returns the name of the specified row.

Parameters:
i - index of the row
Returns:
the name of the specified row

getColName

String getColName(int i)
Returns the name of the specified column.

Parameters:
i - index of the column
Returns:
the name of the specified column

getRowIndex

int getRowIndex(String name)
Returns the index of the row with the specified name in this data frame, or -1 if this data frame does not contain such a row.

Parameters:
name - name of the row
Returns:
the index of the row with the specified name in this data frame, or -1 if this data frame does not contain such a row.

getColIndex

int getColIndex(String name)
Returns the index of the column with the specified name in this data frame, or -1 if this data frame does not contain such a column.

Parameters:
name - name of the column
Returns:
the index of the column with the specified name in this data frame, or -1 if this data frame does not contain such a column.

getCol

RObj getCol(int i)

getCol

RVectorFactor getCol(String name)

get

Object get(int row,
           int col)
Returns the element at the specified position in this data frame.

Parameters:
row - row of the element to return
col - column of the element to return
Returns:
the element at the specified position in this data frame