fm_list {fmesher}R Documentation

Handle lists of fmesher objects

Description

Methods for constructing and manipulating fm_list objects.

Usage

fm_list(x, ..., .class_stub = NULL)

fm_as_list(x, ..., .class_stub = NULL)

## S3 method for class 'fm_list'
c(...)

## S3 method for class 'fm_list'
x[i]

Arguments

x

fm_list object from which to extract element(s)

...

Arguments passed to each individual conversion call.

.class_stub

character; class stub name of class to convert each list element to. If NULL, uses fm_as_fm and auto-detects if the resulting list has consistent class, and then adds that to the class list. If non-null, uses paste0("fm_as_", .class_stub) for conversion, and verifies that the resulting list has elements consistent with that class.

i

indices specifying elements to extract

Value

An fm_list object, potentially with ⁠fm_{class_stub}_list⁠ added.

Methods (by generic)

Functions

Examples

fm_as_list(list(fmexample$mesh, fm_segm_join(fmexample$boundary_fm)))


[Package fmesher version 0.1.5 Index]