Learn R Programming

hash (version 2.1.0.1)

length: Returns the number of items in a hash

Description

Returns the number of items in a hash

Arguments

Value

integerNumber 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
h <- hash( letters, 1:26 )
  length(h) # 26

Run the code above in your browser using DataLab