rincanter.convert

*object-type-to-primitive-type-map*

dynamic

array-of?

(array-of? type obj)

dataframe?

(dataframe? rexp)
Returns true if the passed in object is an R dataframe, false
otherwise

def-from-r

macro

(def-from-r rexp r-type & convert-forms)
Define a from-r method using standard boilerplate

from-r

multimethod

Convert the rosuda JRI/R type to a matching Clojure type

from-r-dispatch

(from-r-dispatch rexp)

prefer-primitive-type

(prefer-primitive-type clazz)
If possible, ensure array is one of the primitive types. Convert if neccessary

r-attr

(r-attr rexp attr-name)
Returns the attribute with the passed in name, or nil.

r-attr-names

(r-attr-names rexp)
Return a seq of attributes, or nil if the REXP has no attributes

r-atts

(r-atts rexp)
Returns a map of the R object's attribute-names -> attributes, or nil.

r-atts-raw

(r-atts-raw rexp)
Returns the JRI object representing the R attributes for this object
or nil if there are no attributes

r-factor-to-categorical-var

(r-factor-to-categorical-var rfactor)

r-has-attr?

(r-has-attr? rexp attr-name)
Returns true if the attribute with the passed in name exists, or false.

r-map-to-atts

(r-map-to-atts attr-map)
Converts a map into the nested list form that rosuda JRI seems to
want in its constructors

r-true

(r-true coll)
Most R variables are collections. This tests a sequence for
equality with 1 or boolean true. Returns true if all equal 1 or true, false otherwise

to-r

multimethod

Convert the Clojure type to the proper rosuda JRI/R type

to-r-dispatch

(to-r-dispatch obj)