delete {r2r} | R Documentation |
Delete keys or key/value pairs from an hash table.
Description
These generics are used for deleting a single key or key/value
pair from an hashset
or hashmap
, respectively.
Usage
delete(x, key)
## S3 method for class 'r2r_hashmap'
delete(x, key)
## S3 method for class 'r2r_hashset'
delete(x, key)
Arguments
x |
an |
key |
an arbitrary R object. Key to be deleted from the hash table. |
Value
NULL
, invisibly.
Author(s)
Valerio Gherardi
Examples
s <- hashset(1, 2, 3)
delete(s, 3)
s[[3]]
[Package r2r version 0.1.1 Index]