R/summary.exposure.levels.R

Defines functions summary.exposure.levels

Documented in summary.exposure.levels

summary.exposure.levels <- function( object, ... ){
  x <- object
  # number of exposures per participants
  U <- apply( x$exposures, 1, function(z) !is.na(z) )
  l <- colSums(U)
  if( length(l) <= 10 )
    cat("\tNumber of exposures per participant is: ",l )
  else
    cat("\tNumber of exposures for first 10 participants is: ",l[1:10])
}

Try the SimVitD package in your browser

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

SimVitD documentation built on Aug. 20, 2023, 5:06 p.m.