Learn R Programming

freesurferformats (version 1.1.0)

[.fs.tracts: Subset an fs.tracts instance.

Description

Subset an fs.tracts instance.

Usage

# S3 method for fs.tracts
[(x, i)

Value

a new fs.tracts instance containing the selected tracts.

Arguments

x

an fs.tracts instance.

i

index vector (integer, numeric or logical), as usual in R.

Examples

Run this code
if (FALSE) {
tck <- read.dti.tck("brain.tck");
first_ten <- tck$tracks[1:10];
}

Run the code above in your browser using DataLab