Package: sfnetworks 0.6.4

sfnetworks: Tidy Geospatial Networks

Provides a tidy approach to spatial network analysis, in the form of classes and functions that enable a seamless interaction between the network analysis package 'tidygraph' and the spatial analysis package 'sf'.

Authors:Lucas van der Meer [aut, cre], Lorena Abad [aut], Andrea Gilardi [aut], Robin Lovelace [aut]

sfnetworks_0.6.4.tar.gz
sfnetworks_0.6.4.zip(r-4.5)sfnetworks_0.6.4.zip(r-4.4)sfnetworks_0.6.4.zip(r-4.3)
sfnetworks_0.6.4.tgz(r-4.4-any)sfnetworks_0.6.4.tgz(r-4.3-any)
sfnetworks_0.6.4.tar.gz(r-4.5-noble)sfnetworks_0.6.4.tar.gz(r-4.4-noble)
sfnetworks_0.6.4.tgz(r-4.4-emscripten)sfnetworks_0.6.4.tgz(r-4.3-emscripten)
sfnetworks.pdf |sfnetworks.html
sfnetworks/json (API)
NEWS

# Install 'sfnetworks' in R:
install.packages('sfnetworks', repos = c('https://luukvdmeer.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/luukvdmeer/sfnetworks/issues

Datasets:
  • roxel - Road network of Münster Roxel

On CRAN:

geospatial-networksnetwork-analysisrspatialsimple-featuresspatial-analysisspatial-data-sciencespatial-networkstidygraphtidyverse

49 exports 338 stars 6.56 score 41 dependencies 4 dependents 298 scripts 2.2k downloads

Last updated 5 months agofrom:2eb08cf182. Checks:OK: 6 NOTE: 1. Indexed: yes.

TargetResultDate
Doc / VignettesOKSep 07 2024
R-4.5-winOKSep 07 2024
R-4.5-linuxOKSep 07 2024
R-4.4-winOKSep 07 2024
R-4.4-macOKSep 07 2024
R-4.3-winOKSep 07 2024
R-4.3-macNOTEAug 08 2024

Exports:%>%activateactiveas_sfnetworkedge_azimuthedge_circuityedge_containsedge_contains_properlyedge_coversedge_crossesedge_displacementedge_equalsedge_intersectsedge_is_covered_byedge_is_disjointedge_is_withinedge_is_within_distanceedge_lengthedge_overlapsedge_touchesis.sfnetworknode_equalsnode_intersectsnode_is_covered_bynode_is_disjointnode_is_withinnode_is_within_distancenode_Mnode_touchesnode_Xnode_Ynode_Zsf_attrsfnetworkst_network_bboxst_network_blendst_network_costst_network_joinst_network_pathsto_spatial_contractedto_spatial_directedto_spatial_explicitto_spatial_neighborhoodto_spatial_shortest_pathsto_spatial_simpleto_spatial_smoothto_spatial_subdivisionto_spatial_subsetto_spatial_transformed

Dependencies:classclassIntclicpp11crayonDBIdplyre1071fansigenericsgeometriesglueigraphKernSmoothlatticelifecyclelwgeommagrittrMASSMatrixpillarpkgconfigproxypurrrR6Rcpprlangs2sfsfheadersstringistringrtibbletidygraphtidyrtidyselectunitsutf8vctrswithrwk

The sfnetwork data structure

Rendered fromsfn01_structure.Rmdusingknitr::rmarkdownon Sep 07 2024.

Last update: 2023-02-24
Started: 2021-09-30

Network pre-processing and cleaning

Rendered fromsfn02_preprocess_clean.Rmdusingknitr::rmarkdownon Sep 07 2024.

Last update: 2023-02-24
Started: 2021-09-30

Spatial joins and filters

Rendered fromsfn03_join_filter.Rmdusingknitr::rmarkdownon Sep 07 2024.

Last update: 2023-02-24
Started: 2021-09-30

Routing

Rendered fromsfn04_routing.Rmdusingknitr::rmarkdownon Sep 07 2024.

Last update: 2024-04-09
Started: 2021-09-30

Spatial morphers

Rendered fromsfn05_morphers.Rmdusingknitr::rmarkdownon Sep 07 2024.

Last update: 2023-02-24
Started: 2021-09-30

Readme and manuals

Help Manual

Help pageTopics
Convert a foreign object to a sfnetworkas_sfnetwork as_sfnetwork.default as_sfnetwork.linnet as_sfnetwork.psp as_sfnetwork.sf as_sfnetwork.sfc as_sfnetwork.sfNetwork as_sfnetwork.sfnetwork as_sfnetwork.tbl_graph
Extract the active element of a sfnetwork as spatial tibbleas_tibble as_tibble.sfnetwork
Convert a sfnetwork into a linnetas.linnet as.linnet.sfnetwork
Plot sfnetwork geometries with ggplot2autoplot autoplot.sfnetwork
Check if an object is a sfnetworkis.sfnetwork
Query node coordinatesnode_coordinates node_M node_X node_Y node_Z
Plot sfnetwork geometriesplot.sfnetwork
Road network of Münster Roxelroxel
s2 methods for sfnetworksas_s2_geography.sfnetwork s2
sf methods for sfnetworkssf st_agr.sfnetwork st_agr<-.sfnetwork st_area.sfnetwork st_as_s2.sfnetwork st_as_sf.sfnetwork st_bbox.sfnetwork st_coordinates.sfnetwork st_crop.morphed_sfnetwork st_crop.sfnetwork st_crs.sfnetwork st_crs<-.sfnetwork st_difference.morphed_sfnetwork st_difference.sfnetwork st_drop_geometry.sfnetwork st_filter.morphed_sfnetwork st_filter.sfnetwork st_geometry.sfnetwork st_geometry<-.sfnetwork st_intersection.morphed_sfnetwork st_intersection.sfnetwork st_intersects.sfnetwork st_is.sfnetwork st_is_valid.sfnetwork st_join.morphed_sfnetwork st_join.sfnetwork st_m_range.sfnetwork st_nearest_points.sfnetwork st_normalize.sfnetwork st_precision.sfnetwork st_reverse.sfnetwork st_sample.sfnetwork st_set_precision.sfnetwork st_shift_longitude.sfnetwork st_simplify.sfnetwork st_transform.sfnetwork st_wrap_dateline.sfnetwork st_zm.sfnetwork st_z_range.sfnetwork
Query sf attributes from the active element of a sfnetworksf_attr
Create a sfnetworksfnetwork
Query spatial edge measuresedge_azimuth edge_circuity edge_displacement edge_length spatial_edge_measures
Query edges with spatial predicatesedge_contains edge_contains_properly edge_covers edge_crosses edge_equals edge_intersects edge_is_covered_by edge_is_disjoint edge_is_within edge_is_within_distance edge_overlaps edge_touches spatial_edge_predicates
Spatial morphers for sfnetworksspatial_morphers to_spatial_contracted to_spatial_directed to_spatial_explicit to_spatial_neighborhood to_spatial_shortest_paths to_spatial_simple to_spatial_smooth to_spatial_subdivision to_spatial_subset to_spatial_transformed
Query nodes with spatial predicatesnode_equals node_intersects node_is_covered_by node_is_disjoint node_is_within node_is_within_distance node_touches spatial_node_predicates
Get the bounding box of a spatial networkst_network_bbox
Blend geospatial points into a spatial networkst_network_blend
Compute a cost matrix of a spatial networkst_network_cost
Join two spatial networks based on equality of node geometriesst_network_join
Paths between points in geographical spacest_network_paths