ids: Extract all node or edge indices from a spatial network

idsR Documentation

Extract all node or edge indices from a spatial network

Description

Extract all node or edge indices from a spatial network

Usage

node_ids(x, focused = TRUE)

edge_ids(x, focused = TRUE)

Arguments

x

An object of class sfnetwork.

focused

Should only the indices of features that are in focus be extracted? Defaults to TRUE. See focus for more information on focused networks.

Details

The indices in these objects are always integers that correspond to rownumbers in respectively the nodes or edges table.

Value

A vector of integers.

Examples

net = as_sfnetwork(roxel[1:10, ])
node_ids(net)
edge_ids(net)


luukvdmeer/sfnetworks documentation built on Nov. 21, 2024, 4:54 a.m.