sf_to_dodgr: A function that transform a sf object into a dodgr object

View source: R/sf_to_dodger.R

sf_to_dodgrR Documentation

A function that transform a sf object into a dodgr object

Description

This function return a dodger object (as a dataframe) from a sf object. Is usefull for net_dist and net_path

Usage

sf_to_dodgr(net, id_col, wt_profile)

Arguments

net

The sf object

id_col

String character with the name of the column with the id of the network

wt_profile

a json object or custom weight profile (see dodgr package), default is 1

Value

A dodgr object

Examples


## tm is an sf object which was cleaned by v.clean using GRASS in QGIS
sf_to_dodger(tm)

samesag/emu documentation built on Aug. 22, 2023, 3:19 p.m.