ciftiTools (version 0.1.6.0)

is.xifti_data: Validate the "data" component of a "xifti" object

Description

Check if object is valid for xifti$data, where xifti is a "xifti" object.

Usage

is.xifti_data(x)

Arguments

x

The putative "data" component.

Value

Logical. Is x a valid "data" component?

Details

This is a helper function for is.xifti.

Requirements: a list with entries "cortex_left", "cortex_right", and "subcort". Each must be either NULL or a numeric matrix with greyordinates along the rows and measurements along the columns. The cortical matrices should have the same number of rows (vertices), and all should have the same number of columns (measurements). At least one data entry should be present.