as_tract: Tract Coercion

Description Usage Arguments Value Examples

Description

as_tract coerces an input list into a tract.

Usage

1
2
3
4
5
6
7
as_tract(x, validate = TRUE, biomarkers = "None")

## S3 method for class 'list'
as_tract(x, validate = TRUE)

## S3 method for class 'tbl_df'
as_tract(x, validate = TRUE, biomarkers = "None")

Arguments

x

Input list.

validate

A boolean specifying whether the class of the input object should be checked (default: TRUE).

Value

A tract.

Examples

1
2
3
file <- system.file("extdata", "Case001_CST_Left.csv", package = "fdatractography")
cst_left <- read_tract(file)
tr <- as_tract(cst_left)

astamm/fdatractography documentation built on May 12, 2019, 5:37 a.m.