# Make an unordered costmatrix:
costmatrix <- make_costmatrix(
min_state = 0,
max_state = 2,
character_type = "unordered"
)
# Check that this is a valid costMatrix object:
is.costMatrix(x = costmatrix)
Run the code above in your browser using DataLab