candles demo data
This commit is contained in:
parent
e6ae2ac8c8
commit
7712ab2e64
14
R/data.R
14
R/data.R
|
@ -47,4 +47,18 @@
|
|||
"consumption"
|
||||
|
||||
|
||||
#' Candlestick demo data
|
||||
#'
|
||||
#'
|
||||
#' @format A data frame with 60 observations and the following 5 variables:
|
||||
#' \describe{
|
||||
#' \item{\code{datetime}}{Timestamp.}
|
||||
#' \item{\code{open}}{Open value.}
|
||||
#' \item{\code{high}}{Highest value.}
|
||||
#' \item{\code{low}}{Lowest value.}
|
||||
#' \item{\code{close}}{Close value.}
|
||||
#' }
|
||||
#' @source Apexcharts (\url{https://apexcharts.com/javascript-chart-demos/candlestick-charts/basic/})
|
||||
"candles"
|
||||
|
||||
|
||||
|
|
|
@ -32,5 +32,6 @@ cdle
|
|||
|
||||
apex(cdle, aes(x = datetime, open = open, close = close, low = low, high = high), type = "candlestick")
|
||||
|
||||
candles <- as.data.frame(cdle)
|
||||
|
||||
|
||||
usethis::use_data(candles, overwrite = TRUE)
|
||||
|
|
Binary file not shown.
Loading…
Reference in New Issue