Skip to content

isordinal

Test whether the categorical array is ordinal.

tf = isordinal(A)

Returns true if A was created with 'Ordinal', true (categories have a meaningful order), false otherwise.

isordinal(categorical({'a','b'})) % 0
  • categorical — Create a categorical array from data.
  • isprotected — Test whether the categorical array’s category set is protected.