org.rosuda.REngine
Class REXPVector

java.lang.Object
  extended by org.rosuda.REngine.REXP
      extended by org.rosuda.REngine.REXPVector
Direct Known Subclasses:
REXPDouble, REXPGenericVector, REXPInteger, REXPList, REXPLogical, REXPRaw, REXPString

public abstract class REXPVector
extends REXP

abstract class representing all vectors in R


Field Summary
 
Fields inherited from class org.rosuda.REngine.REXP
attr, maxDebugItems
 
Constructor Summary
REXPVector()
           
REXPVector(REXPList attr)
           
 
Method Summary
 boolean[] isNA()
          returns a boolean vector of the same length as this vector with true for NA values and false for any other values
 boolean isVector()
          check whether the REXP object is a vector
abstract  int length()
          returns the length of the vector (i.e. the number of elements)
 java.lang.String toDebugString()
          returns representation that it useful for debugging (e.g. it includes attributes and may include vector values -- see REXP.maxDebugItems)
 java.lang.String toString()
          returns a string description of the object
 
Methods inherited from class org.rosuda.REngine.REXP
_attr, asBytes, asDouble, asDoubleMatrix, asDoubles, asFactor, asInteger, asIntegers, asList, asNativeJavaObject, asString, asStrings, createDataFrame, createDoubleMatrix, dim, getAttribute, hasAttribute, inherits, isComplex, isEnvironment, isExpression, isFactor, isInteger, isLanguage, isList, isLogical, isNull, isNumeric, isPairList, isRaw, isRecursive, isReference, isString, isSymbol
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

REXPVector

public REXPVector()

REXPVector

public REXPVector(REXPList attr)
Method Detail

length

public abstract int length()
returns the length of the vector (i.e. the number of elements)

Overrides:
length in class REXP
Returns:
length of the vector

isVector

public boolean isVector()
Description copied from class: REXP
check whether the REXP object is a vector

Overrides:
isVector in class REXP
Returns:
true if the receiver is a vector, false otherwise

isNA

public boolean[] isNA()
returns a boolean vector of the same length as this vector with true for NA values and false for any other values

Overrides:
isNA in class REXP
Returns:
a boolean vector of the same length as this vector with true for NA values and false for any other values

toString

public java.lang.String toString()
Description copied from class: REXP
returns a string description of the object

Overrides:
toString in class REXP
Returns:
string describing the object - it can be of an arbitrary form and used only for debugging (do not confuse with REXP.asString() for accessing string REXPs)

toDebugString

public java.lang.String toDebugString()
Description copied from class: REXP
returns representation that it useful for debugging (e.g. it includes attributes and may include vector values -- see REXP.maxDebugItems)

Overrides:
toDebugString in class REXP
Returns:
extended description of the obejct -- it may include vector values