default | R Documentation |
hashmap
valuesThese generics are used to get or set the default value of an
hashmap
, optionally returned upon query of a missing key.
default(x)
default(x) <- value
## S3 method for class 'r2r_hashmap'
default(x)
## S3 replacement method for class 'r2r_hashmap'
default(x) <- value
x |
an |
value |
an arbitrary R object. Default value to be associated to missing
keys in the |
For more details, see the hashtable documentation page.
an arbitrary R object.
Valerio Gherardi
m <- hashmap()
default(m)
default(m) <- 840
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.