head: Head or tail of a hash

Description Usage Arguments Details Value See Also Examples

Description

There is no guaranteed order to the keys-values are produced. This may change in the futures.

Usage

1
2
3
4
5
## S3 method for class 'hash'
head(x, ...)

## S3 method for class 'hash'
tail(x, ...)

Arguments

x

hash;

...

Additional arguments passed to utils::head()

Details

Returns the first or last part of a hash

Value

A hash object display the first n key-value pairs.

See Also

Examples

1
2
3
4
  h <- hash( letters, 1:26)
  head(h)
  tail(h)
   

decisionpatterns/r-hash documentation built on Feb. 6, 2019, 10:27 p.m.