default {r2r} | R Documentation |
Default hashmap
values
Description
These generics are used to get or set the default value of an
hashmap
, optionally returned upon query of a missing key.
Usage
default(x)
default(x) <- value
## S3 method for class 'r2r_hashmap'
default(x)
## S3 replacement method for class 'r2r_hashmap'
default(x) <- value
Arguments
x |
an |
value |
an arbitrary R object. Default value to be associated to missing
keys in the |
Details
For more details, see the hashtable documentation page.
Value
an arbitrary R object.
Author(s)
Valerio Gherardi
Examples
m <- hashmap()
default(m)
default(m) <- 840
[Package r2r version 0.1.1 Index]