<jupyter_start><jupyter_text>Read incident deaths and store them in specified path<jupyter_code>target_end_dates <- lubridate::ymd(20200504) + seq(7, 7*40, 7)
inc_case_targets <- paste(0:28, "day ahead inc death")

forecasts <- covidHubUtils::load_latest_forecasts(
                      last_forecast_date = target_end_dates,
                      types = c("point","quantile"),
                      locations = "US",
                      targets = c(inc_case_targets),
                      source = "zoltar",
                      hub_repo_path = "")

path_to_save = '/Users/chaosdonkey06/Dropbox/BIOMAC/EnsembleForecast'
write.csv(forecasts, file.path(path_to_save, paste("forecast_deaths_all", ".csv", sep="")), row.names=FALSE)

forecasts
target_end_dates
unique(forecasts$forecast_date)<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.11636363636363636, 'fraction_numerical': 0.02181818181818182, 'mean_word_length': 3.089108910891089, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '249400', 'license': 'Apache-2.0', 'n_tokens_mistral': 290, 'n_tokens_neox': 261, 'n_words': 43, 'path': 'read_store_forecasts.ipynb', 'repo_name': 'ChaosDonkey06/covid19_ensemble_forecast', 'size': '825'}