Description Usage Arguments Details Examples
Extensions of the family of "select helpers" from tidyselect
like
tidyselect::contains()
and tidyselect::matches()
. matches_ohlca()
selects the
columns open
, high
, low
, close
, and adjusted
. matches_ohlcav()
additionally matches volume
.
1 2 3 | matches_ohlca(vars = NULL)
matches_ohlcav(vars = NULL)
|
vars |
A character vector of variable names. When called
from inside selecting functions like |
As a user, you should rarely, if ever, need to specify vars
.
1 2 3 4 5 6 7 8 | data(FANG)
dplyr::select(FANG, matches_ohlca())
FANG %>%
as_tbl_time(date) %>%
dplyr::group_by(symbol) %>%
calculate_return(matches_ohlca())
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.