A partition is a Partition object or a non-empty integer-ish vector with no missing values.
Arguments
- x
Argument to be tested
- n
the expected length of the partition.
- .var.name
Name of the checked object to print in assertions. Defaults to the heuristic implemented in
checkmate::vname()
.- add
Collection to store assertion messages. See checkmate::AssertCollection.
Value
Please see checkmate::checkMatrix()
help page (for instance)
for further details about the difference between check_, test_ and assert_
functions results.
See also
Other arguments checkers:
checkContiguityGraph()
,
checkContiguityMatrix()
,
checkDistanceMatrix()
,
checkRegionalisation()