as.metric_gifti {ciftiTools} | R Documentation |
Format metric data as a "gifti"
Description
Format a V \times T
numeric matrix (V vertices, T measurements) or a length-T list
of length-V numeric vectors as a "gifti"
using a template
"gifti"
. The brain hemisphere (left or right) must be indicated.
Usage
as.metric_gifti(
data,
hemisphere = c("left", "right"),
intent = "NONE",
data_type = NULL
)
Arguments
data |
|
hemisphere |
The side of the brain the data represents: |
intent |
The NIFTI intent, with prefix "NIFTI_INTENT_*". Default:
|
data_type |
The NIFTI type of |
Details
If data
is already a "gifti"
, data$data
will be
used and any metadata will be overwritten by the template or discarded.
Value
The "gifti"