Learn R Programming

hash (version 2.1.0.1)

copy-methods: Create a seperate copy of a hash object.

Description

The copy hash method creates a independent copy of a hash object. Creating a copy using the assingment operator, <-, does not work as expected, since hashes are based on environments and environments are reference objects in R. The assignment operator consequently creates a linked copy to the original hash and not an independent copy. The copy method provides an identical unlinked copy of the hash.

Arguments

Value

A hash object.

docType

methods

See Also

environment