on_missing_key | R Documentation |
These generics are used to get or set the behaviour of an
hashmap
upon query of a missing key (currently, only an
hashmap
method is implemented).
on_missing_key(x)
on_missing_key(x) <- value
## S3 method for class 'r2r_hashmap'
on_missing_key(x)
## S3 replacement method for class 'r2r_hashmap'
on_missing_key(x) <- value
x |
an |
value |
a string, either |
For more details, see the hashtable documentation page.
a string, either "throw"
or "default"
.
Valerio Gherardi
m <- hashmap()
on_missing_key(m)
on_missing_key(m) <- "throw"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.