R/TraMineR-length.R

Defines functions TraMineR.length

TraMineR.length <- function(seq, void) {

	totlength <- length(seq)
	nvoid <- sum(seq==void, na.rm=TRUE)
	l <- totlength - nvoid

	return(l)

}

Try the TraMineR package in your browser

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

TraMineR documentation built on Jan. 9, 2024, 3:02 p.m.