org.rosuda.REngine
Class REXPWrapper

java.lang.Object
  extended by org.rosuda.REngine.REXPWrapper

public class REXPWrapper
extends java.lang.Object

Utility class to wrap an Object into a REXP object. This facilitates wrapping native java objects and arrays into REXP objects that can be pushed to R

Author:
Romain Francois

Constructor Summary
REXPWrapper()
           
 
Method Summary
static REXP wrap(java.lang.Object o)
          Wraps an Object into a REXP Conversion : Byte (byte) : REXPRaw Short (short) : REXPInteger Integer (int) : REXPInteger Long (long) : REXPInteger Float (float) : REXPDouble Double (double) : REXPDouble Boolean (boolean) : REXPLogical -- String : REXPString String[] : REXPString -- byte[] or Byte[] : REXPRaw short[] or Short[] : REXPInteger int[] or Integer[] : REXPInteger long[] or Long[] : REXPInteger float[] or Float[] : REXPDouble double[] or Double[] : REXPDouble boolean[] or Boolean[]: REXPLogical -- null for anything else
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

REXPWrapper

public REXPWrapper()
Method Detail

wrap

public static REXP wrap(java.lang.Object o)
Wraps an Object into a REXP

Conversion :

Parameters:
o - object to wrap
Returns:
REXP object that represents o or null if the conversion is not possible