Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

check_mask_fail

Check Mask is Binary, Fail otherwise


Description

Determine if only values in a mask are 0/1. Will error otherwise.

Usage

check_mask_fail(...)

Arguments

...

arguments to pass to check_mask

Value

Either will error if conditions not met or an invisible NULL

Examples

arr = array(rbinom(1000, size = 1, prob = 0.2), dim = c(10,10,10))
nim = oro.nifti::nifti(arr)
check_mask_fail(nim)

neurobase

'Neuroconductor' Base Package with Helper Functions for 'nifti' Objects

v1.32.1
GPL-2
Authors
John Muschelli [aut, cre]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.