seqrecode function

Recoding state sequence objects and factors