keys: Returns key(s) from a hash

Description Usage Arguments Details Value Author(s) See Also Examples

Description

Returns the key(s) from a hash

Usage

1
2
3
4
  keys(x)

  ## S3 method for class 'hash'
names(x)

Arguments

x

A hash object.

Details

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

Value

keys

A vector of type character

Author(s)

Christopher Brown

See Also

See Also hash.

Examples

1
2
3
4
  h <- hash( letters, 1:26 )
  keys(h)  # letters

  names(h) # same

hash documentation built on May 1, 2019, 7:28 p.m.