Learn R Programming

oro.nifti (version 0.1.4)

descrip-methods: Extract or Replace NIfTI/Analyze Description

Description

Methods that act on the description character string in the NIfTI or Analyze header.

Usage

## S3 method for class 'nifti':
descrip(object)
## S3 method for class 'anlz':
descrip(object)

Arguments

object
is an object of class nifti or anlz.

Examples

Run this code
url <- "http://nifti.nimh.nih.gov/nifti-1/data/avg152T1_LR_nifti.nii.gz"
urlfile <- file.path(system.file("nifti", package="oro.nifti"), "mniLR.nii.gz")
download.file(url, urlfile, quiet=TRUE)
urlfile <- file.path(system.file("nifti", package="oro.nifti"), "mniLR.nii.gz")
mniLR <- readNIfTI(urlfile)
descrip(mniLR)
descrip(mniLR) <- paste(descrip(mniLR), version$version.string, sep="; ")
descrip(mniLR)

Run the code above in your browser using DataLab