all_binary: All binary?

View source: R/utils_checkValue.R

all_binaryR Documentation

All binary?

Description

Check if a data vector or matrix is all zeroes and ones. Option to also accept logical values.

Usage

all_binary(x, logical_ok = TRUE)

Arguments

x

The data vector or matrix

logical_ok

Is a logical vector or matrix also acceptable? Default: TRUE.

Value

Logical. Is x binary data?


fMRItools documentation built on April 12, 2025, 1:32 a.m.