R/length.R

#  ---------------------------------------------------------------------
# length.R
#   return the number of keys in a hash
#   NB:
#     - This doesn't work: env.profile(x@.xData)$nchains
#  ---------------------------------------------------------------------

setMethod( "length" , "hash" ,
    function(x) 
      length( 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.