Skip to content

Commit

Permalink
add stop for createDisaggFilesFromProxyData function as this is for 2…
Browse files Browse the repository at this point in the history
…R models with disaggregated utilities and is not yet implemented
  • Loading branch information
jvendries committed May 15, 2024
1 parent a77a3f2 commit 2e3eb24
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions R/StateiorFunctions.R
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,12 @@ createDisaggFilesFromProxyData <- function(model, disagg, disaggYear, disaggStat
# in the Use table, the three Detail utility commodities (rows) will have that same split for across all columns (industries/final demand)
# 2) The disagg parameter will contain a disagg$stateDF variable that includes the data for the relevant disaggState and disaggYear parameters.

if(!is.null(spec$stateFile)){

stop("This section of code is meant to be used with 2R models with disaggregated utilities
and is not yet fully implemented.")
}

#Get subset of ratios for current year
stateDFYear <- subset(disagg$stateDF, Year == disaggYear & State == disaggState)

Expand Down

0 comments on commit 2e3eb24

Please sign in to comment.