Learn R Programming

hash (version 2.1.0.1)

keys: Returns key(s) from a hash

Description

Returns the key(s) from a hash

Usage

keys(x)

names.hash(x)

Arguments

Value

keysA vector of type character

Details

Returns the character vector containing the keys of a hash object.

See Also

See Also hash.

Examples

Run this code
h <- hash( letters, 1:26 )
  keys(h)  # letters

  names(h) # same

Run the code above in your browser using DataLab