check.dtype.for.data: Check whether the dtype is suitable for the data.

Description Usage Arguments Value

Description

This function provides an educated guess on whether the given dtype is suitable for the data. It is usually called for the site effect of printing warnings in case something seems off.

Usage

1
check.dtype.for.data(data, mri_dtype_code)

Arguments

data

the data to check, a vector, matrix or array typically

mri_dtype_code

integer, the MRI data type code. See translate.mri.dtype.

silent

logical, whether to suppress warning messages if the dtype seems unsuitable

Value

logical, whether the dtype could be suitable. This is only a guess, as the checks are in no way complete.


freesurferformats documentation built on Feb. 11, 2022, 5:06 p.m.