as.matrix.xifti {ciftiTools}R 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.


[Package ciftiTools version 0.17.4 Index]