Learn R Programming

sfnetworks (version 0.3.1)

sf: sf methods for sfnetwork objects

Description

sf methods for sfnetwork objects. Use these methods without the .sfnetwork suffix and after loading the sf package.

Usage

# S3 method for sfnetwork
st_as_sf(x, active = NULL, ...)

# S3 method for sfnetwork st_geometry(x, ...)

# S3 method for sfnetwork st_geometry(x) <- value

# S3 method for sfnetwork st_bbox(x, ...)

# S3 method for sfnetwork st_coordinates(x, ...)

# S3 method for sfnetwork st_is(x, ...)

# S3 method for sfnetwork st_crs(x, ...)

# S3 method for sfnetwork st_crs(x) <- value

# S3 method for sfnetwork st_shift_longitude(x, ...)

# S3 method for sfnetwork st_transform(x, ...)

# S3 method for sfnetwork st_wrap_dateline(x, ...)

# S3 method for sfnetwork st_zm(x, ...)

# S3 method for sfnetwork st_m_range(x, ...)

# S3 method for sfnetwork st_z_range(x, ...)

# S3 method for sfnetwork st_agr(x, ...)

# S3 method for sfnetwork st_agr(x) <- value

# S3 method for sfnetwork st_intersects(x, y = x, ...)

# S3 method for sfnetwork st_reverse(x, ...)

# S3 method for sfnetwork st_simplify(x, ...)

# S3 method for sfnetwork st_join(x, y, join = st_intersects, ..., left = TRUE)

# S3 method for sfnetwork st_crop(x, y, ...)

# S3 method for sfnetwork st_filter(x, y, ..., .predicate = st_intersects)

Arguments

x

An object of class sfnetwork.

active

Which network element (i.e. nodes or edges) to activate before extracting. If NULL, it will be set to the current active element of the given network. Defaults to NULL.

...

Arguments passed on the corresponding sf function.

value
y

An object of class sfnetwork or class sf. In some cases, it can also be an object of sfc, sfg or bbox. Always look at the documentation of the corresponding sf function for details.

join

See st_join.

left

See st_join.

.predicate

Details

See the sf documentation.