get_afni_attribute: Get AFNI Attribute from Extension

View source: R/nifti_extensions.R

get_afni_attributeR Documentation

Get AFNI Attribute from Extension

Description

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

## Not run: 
# Get the history note from an AFNI extension
history <- get_afni_attribute(afni_ext, "HISTORY_NOTE")

## End(Not run)


neuroim2 documentation built on April 16, 2026, 5:07 p.m.