Learn R Programming

silicate (version 0.7.1)

sc_path: Path decomposition

Description

Start in the middle, and build the 'path-link-vertex' table.

Paths.

Usage

sc_path(x, ...)

# S3 method for list sc_path(x, ids = NULL, ...)

# S3 method for default sc_path(x, ...)

# S3 method for PATH sc_path(x, ...)

# S3 method for sfc_TIN sc_path(x, ...)

# S3 method for PATH0 sc_path(x, ...)

# S3 method for ARC sc_path(x, ...)

# S3 method for SC sc_path(x, ...)

# S3 method for SC0 sc_path(x, ...)

# S3 method for matrix sc_path(x, ...)

# S3 method for sf sc_path(x, ids = NULL, ...)

# S3 method for sfc sc_path(x, ids = NULL, ...)

# S3 method for MULTIPOLYGON sc_path(x, ...)

# S3 method for POLYGON sc_path(x, ...)

# S3 method for LINESTRING sc_path(x, ...)

# S3 method for MULTILINESTRING sc_path(x, ...)

# S3 method for POINT sc_path(x, ...)

# S3 method for MULTIPOINT sc_path(x, ...)

# S3 method for GEOMETRYCOLLECTION sc_path(x, ...)

# S3 method for Spatial sc_path(x, ids = NULL, ...)

Value

data frame of path identity and properties

Arguments

x

input object

...

arguments passed to methods

ids

object id, one for each object in the sfc

Details

Paths have properties of their type, their number of vertices, their geometric dimension and which object they occur in.

See Also

sc_coord for the coordinates part of the model, sc_object for the features, and PATH for the full model.

Examples

Run this code
sc_path(minimal_mesh)
sc_path(PATH(minimal_mesh))
sc_path(sfzoo$multipolygon)
sc_path(sfzoo$polygon)
sc_path(sfzoo$linestring)
sc_path(sfzoo$multilinestring)
sc_path(sfzoo$point)
sc_path(sfzoo$multipoint)
sc_path(sfzoo$multipoint)

Run the code above in your browser using DataLab