View source: R/fable_helpers.R
efi_format | R Documentation |
Format a fable fbl_ts forecast in EFI standard
efi_format(df, times = 10)
df |
a fbl_ts forecast |
times |
number of times to draw from distribution for ensemble method, ignored if distributions are normal. |
A data.frame ([tsibble]
) in the EFI format
## Not run:
library(dplyr)
library(readr)
library(fable)
aquatic <-
read_csv("https://data.ecoforecast.org/neon4cast-targets/aquatics/aquatics-targets.csv.gz") %>%
pivot_wider(names_from = "variable", values_from = "observation") %>%
as_tsibble(index = datetime, key = site_id)
oxygen_fc <- aquatic %>%
model(null = MEAN(oxygen)) %>%
forecast(h = "35 days") %>%
efi_format()
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.