all_binary {fMRItools}R 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?


[Package fMRItools version 0.4.7 Index]