org.af.jhlir.call
Interface RMatrix<WRAPPED_TYPE,ARR_TYPE,EL_TYPE>

All Superinterfaces:
RObj<WRAPPED_TYPE>
All Known Subinterfaces:
RMatrixChar<WRAPPED_TYPE>, RMatrixDouble<WRAPPED_TYPE>

public interface RMatrix<WRAPPED_TYPE,ARR_TYPE,EL_TYPE>
extends RObj<WRAPPED_TYPE>


Method Summary
 EL_TYPE get(int row, int col)
          Returns the element at the specified position in this matrix.
 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 matrix.
 ARR_TYPE getData()
           
 EL_TYPE[][] getDataAsObjArr()
           
 int getRowCount()
          Returns the number of rows in the matrix.
 String[] getRowNames()
          Returns the names of the rows.
 List<String> getRowNamesAsList()
          Returns the names of the rows.
 boolean isNA(int row, int col)
          Returns true if the specified element is NA.
 
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 matrix.

Returns:
the number of rows in the matrix

getColumnCount

int getColumnCount()
Returns the number of columns in the matrix.

Returns:
the number of columns in the matrix

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

getData

ARR_TYPE getData()

get

EL_TYPE get(int row,
            int col)
Returns the element at the specified position in this matrix.

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

getDataAsObjArr

EL_TYPE[][] getDataAsObjArr()

isNA

boolean isNA(int row,
             int col)
Returns true if the specified element is NA.

Parameters:
row - row index of the element to test for NA
col - column index of the element to test for NA
Returns:
true if the specified element is NA