keys-get | R Documentation |
Functions for getting information about keys.
keys(.tbl)
raw_keys(.tbl)
has_keys(.tbl)
.tbl |
Reference data frame. |
keys()
always returns a tibble of keys. In case of
no keys it returns a tibble with number of rows as in .tbl
and zero
columns. raw_keys()
is just a wrapper for attr(.tbl, "keys")
.
To know whether .tbl
has keys use has_keys()
.
Set keys, Manipulate keys
keys(mtcars)
raw_keys(mtcars)
has_keys(mtcars)
df <- key_by(mtcars, vs, am)
keys(df)
has_keys(df)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.