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}

o1 = <environment: 0x7f0096a90c00>

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

o2 = [1] 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 /build/reproducible-path/macaulay2-1.26.05+ds/M2/Macaulay2/packages/RInterface/doc/objects.m2:374:0.