Skip to content

Commit 2043b54

Browse files
committed
add .clean = TRUE to remove the tidygraph index from output
1 parent a84097a commit 2043b54

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

R/get-network-graph.R

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,14 +217,15 @@ net_2_sfnet_undirected = function(net_sf, require_equal = TRUE) {
217217

218218
# Creating junctions where road segments overlap
219219
# This converts implicit intersections into explicit nodes
220-
sf_net_subdiv = tidygraph::convert(sfnet, sfnetworks::to_spatial_subdivision)
220+
sf_net_subdiv = tidygraph::convert(sfnet, sfnetworks::to_spatial_subdivision, .clean = TRUE)
221221

222222
# Simplifying the interstitial nodes segments
223223
tidygraph::convert(
224224
sf_net_subdiv,
225225
sfnetworks::to_spatial_smooth,
226226
summarise_attributes = list(collapse_function),
227-
require_equal = require_equal
227+
require_equal = require_equal,
228+
.clean = TRUE
228229
)
229230
}
230231

0 commit comments

Comments
 (0)