| key | R Documentation |
key_vars() acts as a selection
helper that automatically selects all key columns from the tsibble.or other tidyselect-compatible functions, key_vars() acts as a selection
helper that automatically selects all key columns from the tsibble.
key(x)
key_vars(x)
x |
A tsibble. |
key(pedestrian)
key_vars(pedestrian)
key(tourism)
key_vars(tourism)
# Use as a tidyselect helper
library(dplyr)
tourism %>% select(index_var(), key_vars())
# Combine with other tidyselect functions
tourism %>% relocate(key_vars(), .after = last_col())
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.