read_cifti: Read CIFTI File

View source: R/read_cifti.R

read_ciftiR Documentation

Read CIFTI File

Description

Reads CIFTI Files

Usage

read_cifti(fname, drop_data = TRUE, trans_data = TRUE, verbose = TRUE)

readCIFTI(fname, drop_data = TRUE, trans_data = TRUE)

readcii(fname, drop_data = TRUE, trans_data = TRUE)

Arguments

fname

file name of CIFTI file

drop_data

Should the empty data dimensions be dropped?

trans_data

Should the data be transposed

verbose

print diagnostic messages

Value

List of information from the CIFTI file

Examples

outdir = tempdir()
if (have_cifti_test_data(outdir = outdir)) {
   files = download_cifti_data(outdir = outdir)
   fname = grep("MyelinAndCorrThickness.32k_fs_LR.dscalar",
   files, value = TRUE)
   res = read_cifti(fname)
}

cifti documentation built on Jan. 14, 2026, 1:07 a.m.