fm_manifold | R Documentation |
Extract a manifold definition string, or a logical for matching manifold type
fm_manifold(x, type = NULL)
fm_manifold_get(x)
## Default S3 method:
fm_manifold_get(x)
## S3 method for class 'character'
fm_manifold_get(x)
## S3 method for class 'fm_lattice_2d'
fm_manifold_get(x)
## S3 method for class 'fm_lattice_Nd'
fm_manifold_get(x)
fm_manifold_type(x)
fm_manifold_dim(x)
x |
An object with |
type |
|
fm_manifold()
: Either logical (matching manifold type yes/no),
or character (the stored manifold, when is.null(type)
is TRUE
)
fm_manifold_get()
: character
or NULL
fm_manifold_type()
: character or NULL; "M" (curved manifold),
"R" (flat space), "S" (generalised spherical space), "T"
(general tensor product space), or "G" (metric graph)
fm_manifold_dim()
: integer or NULL
fm_manifold_get()
: Method for obtaining a text representation of the
manifold characteristics, e.g. "R1", "R2", "M2", or "T3". The default
method assumes that the manifold is stored as a character
string in a
"manifold" element of the object, so it can be extracted with
x[["manifold"]]
.
Object classes that do not store the information in this way need to
implement their own method.
fm_manifold_get(fmexample$mesh)
fm_manifold(fmexample$mesh)
fm_manifold(fmexample$mesh, "R2")
fm_manifold_type(fmexample$mesh)
fm_manifold_dim(fmexample$mesh)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.