powered by
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).
hashmap
on_missing_key(x)on_missing_key(x) <- value# S3 method for r2r_hashmap on_missing_key(x)# S3 method for r2r_hashmap on_missing_key(x) <- value
on_missing_key(x) <- value
# S3 method for r2r_hashmap on_missing_key(x)
# S3 method for r2r_hashmap on_missing_key(x) <- value
an hashmap.
a string, either "throw" or "default". Action to be taken upon query of a missing key.
"throw"
"default"
a string, either "throw" or "default".
For more details, see the hashtable documentation page.
# NOT RUN { m <- hashmap() on_missing_key(m) on_missing_key(m) <- "throw" # }
Run the code above in your browser using DataLab