R/treatment_iovs.R

#_______________________________________________________________________________
#----                         treatment_iovs class                          ----
#_______________________________________________________________________________

#' 
#' Treatment IOV's class.
#' 
#' @export
setClass(
  "treatment_iovs",
  representation(
  ),
  contains="pmx_list",
  prototype = prototype(type="treatment_iov")
)

#_______________________________________________________________________________
#----                                  show                                 ----
#_______________________________________________________________________________

setMethod("show", signature=c("treatment_iovs"), definition=function(object) {
  if (object %>% length() > 0) {
    cat("-> Treatment IOV:", paste0(object %>% getNames(), collapse=","))
    cat("\n")
  }
})

Try the campsis package in your browser

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

campsis documentation built on Oct. 13, 2023, 5:09 p.m.