
carosellini.rJava.REngine.0.9-7.source-code.REXPVector Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of REngine Show documentation
Show all versions of REngine Show documentation
Rserve is a TCP/IP server which allows other programs to use facilities of R (see www.r-project.org) from various languages without the need to initialize R or link against R library. Every connection has a separate workspace and working directory. Client-side implementations are available for popular languages such as C/C++, PHP and Java. Rserve supports remote connection, authentication and file transfer. Typical use is to integrate R backend for computation of statstical models, plots etc. in other applications.
The newest version!
package org.rosuda.REngine;
/** abstract class representing all vectors in R */
public abstract class REXPVector extends REXP {
public REXPVector() { super(); }
public REXPVector(REXPList attr) {
super(attr);
}
/** returns the length of the vector (i.e. the number of elements)
* @return length of the vector */
public abstract int length();
public boolean isVector() { return true; }
/** returns a boolean vector of the same length as this vector with true
for NA values and false
for any other values
* @return a boolean vector of the same length as this vector with true
for NA values and false
for any other values */
public boolean[] isNA() {
boolean a[] = new boolean[length()];
return a;
}
public String toString() {
return super.toString()+"["+length()+"]";
}
public String toDebugString() {
return super.toDebugString()+"["+length()+"]";
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy