R/copy.R

# -----------------------------------------------------------------------------
# copy.R
#
# -----------------------------------------------------------------------------
setGeneric( 'copy', function(x,...) standardGeneric( 'copy'  ) )

setMethod( 'copy', 'hash', 
  function(x, ... ) {
    
    hash( mget( keys(x), x@.xData ) ) 

  }
)

Try the hash package in your browser

Any scripts or data that you put into this service are public.

hash documentation built on Aug. 20, 2023, 1:08 a.m.