| RtoJavaSig {Java} | R Documentation |
This takes the given object and returns a string
that can be used in the
This is of most use for primitivesso that one
doesn't have to remember the different Java
characters representing its primitive types.
This is currently not useful for non-primitive objects (e.g. lists)
until javaSig is enhanced.
RtoJavaSig(obj)
obj |
Any R object, but the result is textit{currently} only meaningful if this is a primitive. |
This examines the class and/or mode of the
specified object and then calls javaSig
to find the name of the Java class corresponding
to the name of the given object's type.
A character vector of length 1 identifying the Java type (primitive or class) corresponding to the type of the input object.
This will be enhanced in future versions as more elaborate conversion mechanisms are added.
John Chmabers, Duncan Temple Lang
http://www.omegahat.org, http://www.javasoft.com
javaSig(1)
javaSig(as.integer(10))
javaSig("a string")
javaSig(list(a=1))