ensure.fs.surface: Check whether parameter is an fs.surface instance.

View source: R/brain_igraph.R

ensure.fs.surfaceR Documentation

Check whether parameter is an fs.surface instance.

Description

Check whether parameter is an fs.surface instance.

Usage

ensure.fs.surface(surface)

Arguments

surface

an fs.surface instance which will be returned as-is, a tmesh3d which will be converted to a surface using tmesh3d.to.fs.surface, or a character string which will be interpreted as a file system path and loaded with freesurferformats::read.fs.surface. Anything else will stop with an error.

Value

an fs.surface instance, unless an error occurs.


fsbrain documentation built on July 9, 2023, 7:12 p.m.