R/create_index.R

Defines functions create_index

Documented in create_index

#' create_index
#' 
#' @keywords internal
#'
#' @param self self
#'
create_index <- function(self) {

  tmp <- 1

  if (!is.null(self$inputs))
    tmp <- c(tmp, max(self$inputs$index) + 1)

  if (!is.null(self$outputs))
    tmp <- c(tmp, max(self$outputs$index) + 1)

  max(tmp)
}
ScottishCovidResponse/SCRCdataAPI documentation built on July 26, 2023, 9:47 p.m.