getDatatype: Determine Datatype

Description Usage Arguments Value Author(s) Examples

Description

This function returns the largest datatype from a set of files or images. The return value is a code in RNiftyReg format or the exact nifti code.

Usage

1
getDatatype(input,type="RNiftyReg")

Arguments

input

A character vector of file paths, an image or a list of images.

type

A character vector. If equal to "RNiftyReg" the code will be returned in RNiftyReg format. If anything else the nifti code will be returned.

Value

RNiftyReg datatype code or nifti datatype code.

Author(s)

Tim Tierney

Examples

1
2
file<-system.file("extdata","motion_ex.nii.gz",package="FIACH")
getDatatype(file)

FIACH documentation built on May 1, 2019, 8:02 p.m.

Related to getDatatype in FIACH...