1 #devtools::install_github("pldimitrov/rrd")
4 rrd_laysan_apache_bytes <- system.file("/home/frederik/apache_bytes.rrd", package = "rrd")
6 apache_bytes <- read_rrd("/home/frederik/apache_bytes.rrd")
7 describe_rrd("/home/frederik/apache_bytes.rrd")
9 end_time <- as.POSIXct("2018-08-15") # timestamp with data in example
10 start_time <- as.POSIXct("2018-04-15")
11 avg_26350 <- read_rra("/home/frederik/apache_bytes.rrd", cf = "AVERAGE",
18 avg_10 <- read_rra("/home/frederik/apache_bytes.rrd", cf = "AVERAGE",
26 ggplot(avg_10, aes(x = timestamp, y = value)) +
28 stat_smooth(method = "loess", span = 0.125, se = FALSE) +
29 ggtitle("apache bytes, data read from RRD file")
31 #devtools::install_github("tidyverts/fable")
34 ts_avg_bytes <- as.tsibble(avg_10, regular = TRUE)
37 fill_na(value = as.integer(median(value))) %>%