Learn R Programming

hash (version 2.2.6)

length: Returns the number of items in a hash

Description

Returns the number of items in a hash

Arguments

Value

integer

Number of items in the hash.

Details

Return the number of items in the hash by calling length on the internal environment.

See Also

See Also hash, length

Examples

Run this code
# NOT RUN {
  h <- hash( letters, 1:26 )
  length(h) # 26

# }

Run the code above in your browser using DataLab