Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

coerce-methods

Force an Object to Belong to the ANALYZE or NIfTI Class


Description

Methods for function coerce in Package ‘methods’.

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.

from

is the object to be converted.

value

is the nifti class object to use as a template for various ANALYZE/NIfTI header information.

verbose

is a logical variable (default = FALSE) that allows text-based feedback during execution of the function.

Value

An object of class anlz or nifti.

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,
Brandon Whitcher bwhitcher@gmail.com

See Also


oro.nifti

Rigorous - 'NIfTI' + 'ANALYZE' + 'AFNI' : Input / Output

v0.11.0
BSD_3_clause + file LICENSE
Authors
Brandon Whitcher [aut, cre], Volker Schmid [aut], Andrew Thornton [aut], Karsten Tabelow [ctb], Jon Clayden [ctb], John Muschelli [aut]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.