all_binary {fMRItools} | R Documentation |
Check if a data vector or matrix is all zeroes and ones. Option to also accept logical values.
all_binary(x, logical_ok = TRUE)
x |
The data vector or matrix |
logical_ok |
Is a logical vector or matrix also acceptable? Default:
|
Logical. Is x
binary data?