aux_file-methods: Extract or Replace NIfTI/Analyze Auxiliary File

Description Usage Arguments Methods Author(s) Examples

Description

Methods that act on the “auxiliary file” character string in the NIfTI or Analyze header.

Usage

1
2
3
4
## S4 method for signature 'nifti'
aux.file(object)
## S4 method for signature 'anlz'
aux.file(object)

Arguments

object

is an object of class nifti or anlz.

Methods

object = "anlz"

Extract or replace Analyze auxiliary file.

object = "nifti"

Extract or replace NIfTI auxiliary file.

Author(s)

Brandon Whitcher bwhitcher@gmail.com

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
## Not run: 
url <- "http://nifti.nimh.nih.gov/nifti-1/data/avg152T1_RL_nifti.nii.gz"
urlfile <- file.path(system.file("nifti", package="oro.nifti"),
                     "mniRL.nii.gz")
download.file(url, urlfile, quiet=TRUE)

## End(Not run)
options("niftiAuditTrail"=FALSE)

urlfile <- file.path(system.file("nifti", package="oro.nifti"),
                     "mniRL.nii.gz")
mniRL <- readNIfTI(urlfile)
aux.file(mniRL)
aux.file(mniRL) <- "avg152T1_RL_nifti"
aux.file(mniRL)

oro.nifti documentation built on May 21, 2017, 1:26 a.m.

Search within the oro.nifti package
Search all R packages, documentation and source code