|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.rosuda.REngine.REXP org.rosuda.REngine.REXPVector org.rosuda.REngine.REXPString
public class REXPString
REXPString represents a character vector in R.
Field Summary |
---|
Fields inherited from class org.rosuda.REngine.REXP |
---|
attr, maxDebugItems |
Constructor Summary | |
---|---|
REXPString(java.lang.String load)
create a new character vector of the length one |
|
REXPString(java.lang.String[] load)
create a new character vector |
|
REXPString(java.lang.String[] load,
REXPList attr)
create a new character vector with attributes |
Method Summary | |
---|---|
java.lang.Object |
asNativeJavaObject()
attempt to represent the REXP by a native Java object and return it. |
java.lang.String[] |
asStrings()
returns the contents as an array of Strings (if supported by the represented object) |
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 |
isString()
check whether the REXP object is a character vector (string) |
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 ) |
Methods inherited from class org.rosuda.REngine.REXPVector |
---|
isVector, toString |
Methods inherited from class org.rosuda.REngine.REXP |
---|
_attr, asBytes, asDouble, asDoubleMatrix, asDoubles, asFactor, asInteger, asIntegers, asList, asString, createDataFrame, createDoubleMatrix, dim, getAttribute, hasAttribute, inherits, isComplex, isEnvironment, isExpression, isFactor, isInteger, isLanguage, isList, isLogical, isNull, isNumeric, isPairList, isRaw, isRecursive, isReference, isSymbol |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public REXPString(java.lang.String load)
load
- first (and only) element of the vectorpublic REXPString(java.lang.String[] load)
load
- string elements of the vectorpublic REXPString(java.lang.String[] load, REXPList attr)
load
- string elements of the vectorattr
- attributesMethod Detail |
---|
public int length()
REXPVector
length
in class REXPVector
public boolean isString()
REXP
REXP
object is a character vector (string)
isString
in class REXP
true
if the receiver is a character vector, false
otherwisepublic java.lang.Object asNativeJavaObject()
REXP
int[1]
and not Integer
).
asNativeJavaObject
in class REXP
public java.lang.String[] asStrings()
REXP
asStrings
in class REXP
public boolean[] isNA()
REXPVector
true
for NA values and false
for any other values
isNA
in class REXPVector
true
for NA values and false
for any other valuespublic java.lang.String toDebugString()
REXP
REXP.maxDebugItems
)
toDebugString
in class REXPVector
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |