Learn R Programming

fmesher (version 0.3.0)

fm_list: 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 fm_list c(...)

# S3 method for fm_list [(x, i)

Value

An fm_list object, potentially with fm_{class_stub}_list

added.

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

Methods (by generic)

  • c(fm_list): The ... arguments should be coercible to fm_list objects.

  • [: Extract sub-list

Functions

  • fm_list(): Convert each element of a list, or convert a single non-list object and return in a list

  • fm_as_list(): Convert each element of a list, or convert a single non-list object and return in a list

Examples

Run this code
fm_as_list(list(fmexample$mesh, fm_segm_join(fmexample$boundary_fm)))

Run the code above in your browser using DataLab