Description Usage Arguments Details See Also Examples
Atomatically sets the keys of a data.table based on options
.
Set the column for autokeys
Get the vector of autokeys
1 2 3 4 5 | autokey(x, keys = getOption("datatable.autokey"))
set_autokeys(cols)
autokeys()
|
x |
data.table that will get autokeys set. |
keys |
character; the values to set for keys if present in
|
cols |
character; column names to be automatically set as keys This is nothing more than a wrapper for options(autokey=x) |
Simple wrapper of getOption('datatable.autokey')
setkeyv
in the data.table
package.
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.