For join, A single-session capthist object. The attribute `interval' records the
distinction between occasions that are adjacent in the input (interval =
0) and those that are in consecutive sessions (interval = 1); `interval'
has length one less than the number of occasions.
For unjoin, a multi-session capthist object. Sessions are named
with integers.