Learn R Programming

freesurferformats (version 0.1.18)

read.fs.label: Read a label file.

Description

Read a label file.

Usage

read.fs.label(filepath, format = "auto", ...)

Arguments

filepath

string. Full path to the input label file.

format

character string, one of 'auto' to detect by file extension, 'asc' for native FreeSurfer ASCII label format, or 'gii' for GIFTI label format.

...

extra paramters passed to the respective label function for the format

See Also

Other label functions: read.fs.label.gii(), read.fs.label.native(), write.fs.label()

Examples

Run this code
    labelfile = system.file("extdata", "lh.entorhinal_exvivo.label",
      package = "freesurferformats", mustWork = TRUE);
    label = read.fs.label(labelfile);

Run the code above in your browser using DataLab