Learn R Programming

hash (version 2.1.0.1)

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

Description

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

Usage

del(x,hash)
  delete(x,hash)

Arguments

Value

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

See Also

See Also as hash, make.keys.

Examples

Run this code
h <- hash( letters, 1:26 )
  h # 26 elements
  del( "a", h )
  h # 25 elements

Run the code above in your browser using DataLab