R/toolHoldConstantBeyondEnd.R

Defines functions toolHoldConstantBeyondEnd

Documented in toolHoldConstantBeyondEnd

#' @title toolHoldConstantBeyondEnd
#' @description Holds a historical dataset constant for the entire simulation period "time".
#'
#' @param x MAgPIE object to be continued.
#' @return MAgPIE object with completed time dimensionality.
#' @author Benjamin Leon Bodirsky
#' @importFrom magpiesets findset
#' @export

toolHoldConstantBeyondEnd <- function(x) {
  return(toolHoldConstant(x, years = findset("time")))
}
pik-piam/mstools documentation built on Dec. 8, 2024, 5:29 a.m.