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.


dfsp-spirit/fsbrain documentation built on Nov. 28, 2024, 10:29 a.m.