Description Usage Arguments Details Author(s) See Also Examples
Functions used for lookups of search keys.
1 2 3 4 5 | match_ignorecase(lookup, entry, ...)
match_exact(lookup, entry, ...)
match_partial(lookup, entry, ...)
match_partial_ignorecase(lookup, entry, ...)
match_regexp(lookup, entry, ...)
|
lookup |
Search value to look up (for some key field). |
entry |
Vector of key values where |
... |
For |
These are matching functions to be specified for key fields, controlling how search values are looked up in the registry.
David Meyer David.Meyer@R-project.org
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | ## use exact matching
R <- registry(stop_if_missing = FALSE)
R$set_field("Key", type = "character", is_key = TRUE, index_FUN = match_exact)
R$set_field("Value", type = "numeric")
R$set_entry("the key", 1)
R[["the key"]]
R[["the"]]
## use partial matching
R <- registry()
R$set_field("Key", type = "character", is_key = TRUE, index_FUN = match_partial)
R$set_field("Value", type = "numeric")
R$set_entry("the key", 1)
R[["the"]]
## use regular expressions
R <- registry()
R$set_field("Key", type = "character", is_key = TRUE, index_FUN = match_regexp)
R$set_field("Value", type = "numeric")
R$set_entry("the key", 1)
R$set_entry("key", 2)
R[["k.*"]]
R["k.*"]
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.