del: Remove key-value pair(s) from a hash

Description Usage Arguments Value Author(s) See Also Examples

Description

Removes key-value pair(s) from a hash.

Usage

1
2

Arguments

x

An object that will be coerced to valid key(s) to be removed from the hash. x will be coerced to a valid hash keys using make.keys

hash

A hash object

Value

None. This method exists solely for the side-effects of removing items from the hash.

Author(s)

Christopher Brown

See Also

See Also as hash, make.keys.

Examples

1
2
3
4
  h <- hash( letters, 1:26 )
  h # 26 elements
  del( "a", h )
  h # 25 elements

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