Skip to contents

Applies the ordinary runs test to a binary matrix using boustrophedon-style traversal. The function supports two modes: row-wise and column-wise boustrophedon. Each traversal flattens the matrix into a 1D sequence which is then tested using oruns_test.

Usage

oruns_test_boustrophedon(mat)

Arguments

mat

A binary matrix (containing 0s and 1s, and possibly NAs).

Value

A list with two elements:

rowwise_boustrophedon

List containing the sequence and result of oruns_test for row-wise traversal.

colwise_boustrophedon

List containing the sequence and result of oruns_test for column-wise traversal.