Learn R Programming

ciftiTools (version 0.17.4)

as.matrix.xifti: 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 xifti
as.matrix(x, subcortex_by_bs = FALSE, ...)

Value

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

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