## Vector of all lexicograghic states with labels ( names of elements )
allLex( ngam = 4 )
## Convert lex to label
lex2label( lex = c( 1, 2, 15), ngam = 4 )
## Convert label to lex
label2lex( label = c( 2, 3 ), ngam = 4 )
Run the code above in your browser using DataLab