is.nrrd: Check if a file is a NRRD file

View source: R/nrrd-io.R

is.nrrdR Documentation

Check if a file is a NRRD file

Description

Check if a file is a NRRD file

Usage

is.nrrd(f = NULL, bytes = NULL, ReturnVersion = FALSE, TrustSuffix = FALSE)

Arguments

f

A character vector specifying the path or a raw vector with at least 8 bytes.

bytes

optional raw vector of at least 8 bytes from the start of a single file (used in preference to reading file f).

ReturnVersion

Whether to return the version of the nrrd format in which the file is encoded (1-5).

TrustSuffix

Whether to trust that a file ending in .nrrd or .nhdr is a NRRD

Details

Note that multiple files can be checked when a character vector of length > 1 is provided, but only one file can be checked when a raw byte array is provided.


nat documentation built on May 29, 2024, 10:36 a.m.