set_lookup_tbl_key | R Documentation |
Sets the key columns of a lookup table to optimize performance for lookup operations. The key columns are sorted (with a priority given to "year" if present) and then set as the key for the data.table.
set_lookup_tbl_key(lookup_tbl, keycols)
lookup_tbl |
A data.table whose key columns are to be set. |
keycols |
A character vector specifying the key columns to be used. |
The original lookup table (invisibly) with its key set for efficient subsetting.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.