Extracts a specific attribute value from a parsed AFNI extension.
Usage
get_afni_attribute(ext, attr_name)
Arguments
- ext
A NiftiExtension-class object with ecode = 4,
or an xml_document from parse_afni_extension.
- attr_name
Character string specifying the attribute name to retrieve
(e.g., "HISTORY_NOTE", "BRICK_LABS").
Value
The attribute value, or NULL if not found. The type depends on the
attribute's ni_type in the XML.
Examples
if (FALSE) { # \dontrun{
# Get the history note from an AFNI extension
history <- get_afni_attribute(afni_ext, "HISTORY_NOTE")
} # }