# Generate and save two-region IO tables
# Build model
TwoRegionModel <- assembleTwoRegionIO(year, iolevel = "Summary")
# Subset data set
for (name in names(TwoRegionModel)) {
df <- TwoRegionModel[[name]]
# Write data to .rds
data_name <- paste("TwoRegion_Summary", name, year,
utils::packageDescription("stateior", fields = "Version"),
sep = "_")
saveRDS(object = df,
file = paste0(file.path("data", data_name), ".rds"))
# Write metadata to JSON
useeior:::writeMetadatatoJSON(package = "stateior",
name = data_name,
year = year,
source = "stateior",
url = NULL,
date_last_modified = as.character(Sys.Date()),
date_accessed = NULL)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.