Learn R Programming

FIACH (version 0.1.2)

getDatatype: Determine Datatype

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

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.

Examples

Run this code
file<-system.file("extdata","motion_ex.nii.gz",package="FIACH")
getDatatype(file)

Run the code above in your browser using DataLab