ensure.fs.surface {fsbrain}R 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.


[Package fsbrain version 0.5.5 Index]