header: accessing/modifying header attributes

headerR Documentation

accessing/modifying header attributes

Description

Access/modify the list of header attributes in nifti object; or accessing/modifying specific header attributes

Usage

header(x)
dim(x)
pixdim(x)
header(x) <- list(...)
dim(x) <- c(...)
pixdim(x) <- c(...)

Arguments

x

nifti or niftiXd object

Details

Note that changing the dim (i.e., dim(x) <- c(10,10,10)) will change both the header attribute 'dim' and the actual dimensions of your data if your input is a nifti object

Value

list with header attributes or specific attribute or NULL


czarrar/niftir documentation built on April 19, 2022, 3:35 a.m.