Package kenozooid :: Module rglue

Module rglue

source code

rpy integration functions.
Functions
 
df(cols, vf, data)
Create R data frame using rpy interface.
source code
 
dives_df(dives)
Create R data frame for dives using rpy interface.
source code
 
dive_profiles_df(dives)
Create R data frame for dive profiles using rpy interface.
source code
 
inject_dive_data(dives)
Inject dive data into R space. Two variables are created
source code
Variables
  R = ro.r
  bool_vec = partial(_vec, ro.BoolVector, ro.NA_Logical)
  float_vec = partial(_vec, ro.FloatVector, ro.NA_Real)
  int_vec = partial(_vec, ro.IntVector, ro.NA_Integer)
  str_vec = partial(_vec, ro.StrVector, ro.NA_Character)
  dt_vec = partial(_vec, ro.POSIXct.sexp_from_datetime, ro.NULL)
Function Details

df(cols, vf, data)

source code 
Create R data frame using rpy interface.
Parameters:
  • cols - Column names.
  • vf - Vector constructors.
  • data - Iterable of data frame rows (not columns).

inject_dive_data(dives)

source code 

Inject dive data into R space. Two variables are created

kz.dives
Data frame of dives.
kz.profiles
Data frame of dive profiles
Parameters:
  • dives - Collection of dive data.