coerce-methods: Force an Object to Belong to the ANALYZE or NIfTI Class

Description Usage Arguments Details Methods Author(s) See Also

Description

Methods for function coerce in Package ‘methods’.

Usage

1
2
3
4
5
6
7
8
## S4 method for signature 'array,anlz'
as(object, Class)
## S4 replacement method for signature 'array,anlz'
as(object, Class) <- value
## S4 method for signature 'array,nifti'
as(object, Class)
## S4 replacement method for signature 'array,nifti'
as(object, Class) <- value

Arguments

object

is an object of class array or inherits from array.

Class

is the name of the class to which ‘object’ should be coerced; i.e., nifti.

value

is the values used to modify ‘object’ (see the discussion below). You should supply an object with class nifti in order to pass NIfTI header information.

Details

If

Methods

from = "anlz", to = "nifti"

An object of class anlz is coerced into a NIfTI object.

from = "array", to = "anlz"

An object of class array is coerced into an ANALYZE object.

from = "array", to = "nifti"

An object of class array is coerced into a NIfTI object.

from = "list", to = "anlz"

All objects of class array in the list are coerced into ANALYZE objects. All other objects are left alone. The original list structure is retained.

from = "list", to = "nifti"

All objects of class array in the list are coerced into NIfTI objects. All other objects are left alone. The original list structure is retained.

Author(s)

Andrew Thornton zeripath@users.sourceforge.net and Brandon Whitcher bwhitcher@gmail.com

See Also

as



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

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.