Learn R Programming

fMRItools (version 0.7.2)

all_binary: 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)

Value

Logical. Is x binary data?

Arguments

x

The data vector or matrix

logical_ok

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