Skip to content

Commit

Permalink
fix naming of objects
Browse files Browse the repository at this point in the history
  • Loading branch information
bl-young committed Oct 26, 2024
1 parent c2b395f commit 429dd8c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions data-raw/TwoRegionModel.R
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ specs <- configr::read.config(configpath)
TwoRegionModel <- assembleTwoRegionIO(year, iolevel = specs$BaseIOLevel,
disagg_specs = specs$DisaggregationSpecs)

stub <- ifelse(is.null(specs$DisaggregationSpecs), "", specs$DisaggregationSpecs)

# Subset data set
for (name in names(TwoRegionModel)) {
df <- TwoRegionModel[[name]]
# Write data to .rds
data_name <- paste("TwoRegion_Summary", name, stub, year,
name <- ifelse(is.null(specs$DisaggregationSpecs), name,
paste0(name, "_", specs$DisaggregationSpecs))
data_name <- paste("TwoRegion_Summary", name, year,
utils::packageDescription("stateior", fields = "Version"),
sep = "_")
saveRDS(object = df,
Expand Down

0 comments on commit 429dd8c

Please sign in to comment.