read_cifti: Read CIFTI File

Description Usage Arguments Value Examples

View source: R/read_cifti.R

Description

Reads CIFTI Files

Usage

1
2
3
4
5
read_cifti(fname, drop_data = TRUE, trans_data = 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

Value

List of information from the CIFTI file

Examples

1
2
3
4
5
6
7
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)
}

muschellij2/cifti documentation built on May 25, 2018, 6:29 p.m.