R/seqi1epi.R

Defines functions seqi1epi

Documented in seqi1epi

seqi1epi <- function(seqdata) {
  dur <- suppressMessages(TraMineR::seqistatd(seqdata))
  epi <- ceiling(dur/ncol(seqdata))
  colnames(epi) <- paste0("epi", alphabet(seqdata))
  return(epi)
}
nicolas-robette/seqhandbook documentation built on April 9, 2023, 7:08 a.m.