l_toR {loon}R Documentation

Convert a Tcl Object to some other R object

Description

Return values from .Tcl and tcl are of class tclObj and often need to be mapped to a different data structure in R. This function is a helper class to do this mapping.

Usage

l_toR(x, cast = as.character)

Arguments

x

a tclObj object

cast

a function to conver the object to some other R object

Value

A object that is returned by the function specified with the cast argument.


[Package loon version 1.4.1 Index]