R/toolHoldConstantBeyondEnd.R

Defines functions 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
#' @importFrom mstools toolHoldConstant
#' @export

toolHoldConstantBeyondEnd<-function(x){
  return(toolHoldConstant(x,years=findset("time")))
}
pik-piam/moinput documentation built on June 9, 2020, 12:23 p.m.