R/new_BSBinit.R

Defines functions new_BSBinit

# Not exported

# Creates an object of class 'BSBinit'
new_BSBinit <- function(l = list(),
                        individuals = integer(),
                        intervals = integer(),
                        has_predictors = logical()) {

  stopifnot(is.list(l))
  stopifnot(is.integer(individuals))
  stopifnot(is.integer(intervals))
  stopifnot(is.logical(has_predictors))

  structure(
    l,
    class = "BSBinit",
    individuals = individuals,
    intervals = intervals,
    has_predictors = has_predictors
    )
}

Try the BGPhazard package in your browser

Any scripts or data that you put into this service are public.

BGPhazard documentation built on Sept. 3, 2023, 5:09 p.m.