| NiftiExtensionList-class | R Documentation |
A validated list containing zero or more NiftiExtension-class objects.
This class ensures type safety when working with collections of NIfTI extensions.
## S4 method for signature 'NiftiExtensionList'
show(object)
object |
A |
The class extends list and enforces that all elements must be
NiftiExtension objects. This provides a clean container for
managing multiple extensions attached to a NIfTI file.
NiftiExtension-class for individual extension objects.
extensions for accessing extensions from image objects.
# Create an empty extension list
ext_list <- new("NiftiExtensionList")
# Create a list with extensions
ext1 <- NiftiExtension(ecode = 6L, data = "Comment 1")
ext2 <- NiftiExtension(ecode = 6L, data = "Comment 2")
ext_list <- new("NiftiExtensionList", list(ext1, ext2))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.