Macaulay2 » Documentation
Packages » RInterface » RObject » new RObject from HashTable
next | previous | forward | backward | up | index | toc

new RObject from HashTable -- create an R environment from a hash table

Description

Converts a Macaulay2 HashTable with String keys to an R environment, with each key-value pair becoming a variable binding.

i1 : env = RObject hashTable {"x" => 5_ZZ, "y" => 2_ZZ}

--error or time limit reached in conversion of output to net: type 'debugError()' to run it again; will try conversion to string

o1 = 

o1 : RObject of type environment
i2 : RValue("x^y", Environment => env)

--error or time limit reached in conversion of output to net: type 'debugError()' to run it again; will try conversion to string

o2 = 25

o2 : RObject of type double
i3 : value oo

o3 = 25

o3 : RR (of precision 53)

Ways to use this method:


The source of this document is in RInterface/doc/objects.m2:374:0.