Learn R Programming

hash (version 2.2.6.3)

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.

Author

Christpher Brown

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

  h <- hash( letters, 1:26 )
  length(h) # 26

Run the code above in your browser using DataLab