as.matrix.xifti: Convert a '"xifti"' to a matrix

View source: R/utils_xifti.R

as.matrix.xiftiR Documentation

Convert a "xifti" to a matrix

Description

Converts a "xifti" to a matrix by concatenating the data from each brainstructure along the rows. Surfaces and metadata are discarded.

Usage

## S3 method for class 'xifti'
as.matrix(x, subcortex_by_bs = FALSE, ...)

Arguments

x

A "xifti" object.

subcortex_by_bs

If subcortical data exists in x, should the resulting matrix order locations by brain structure? Default: FALSE. If TRUE, subcortex locations will be sorted by brain structure first, and then array index second.

...

Unused

Value

The input as a matrix. Each brainstructure's data is concatenated.


ciftiTools documentation built on April 4, 2025, 1:09 a.m.