Learn R Programming

od (version 0.5.1)

od_sample_vertices: Create a subsample of points from a route network for jittering

Description

Todo: export this at some point

Usage

od_sample_vertices(x, fraction = 1)

Arguments

x

An sf object representing a road network

fraction

What percent of the network to sample?

Examples

Run this code
if (FALSE) {
u = "https://github.com/ITSLeeds/od/releases/download/v0.3.1/road_network_min.Rds"
f = basename(u)
if (!file.exists(f)) download.file(u, f)
road_network_min = readRDS(f)
od_sample_vertices(road_network_min)
}

Run the code above in your browser using DataLab