Learn R Programming

freesurferformats (version 0.1.18)

nifti.file.uses.fshack: Determine whether a NIFTI file uses the FreeSurfer hack.

Description

Determine whether a NIFTI file uses the FreeSurfer hack.

Usage

nifti.file.uses.fshack(filepath)

Value

logical, whether the file header contains the FreeSurfer format hack. See read.nifti1.header for details. This function detects NIFTI v2 files, but as they cannot contain the hack, it will always return `FALSE` for them.

Arguments

filepath

path to a NIFTI v1 file (single file version), which can contain the FreeSurfer hack.