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

View source: R/is.xifti.R

is.xifti_dataR Documentation

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.

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 grayordinates 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.

Value

Logical. Is x a valid "data" component?


mandymejia/ciftiTools documentation built on Feb. 28, 2024, 11:20 a.m.