od_is_valid: Checck validity of od objects

Description Usage Arguments Details

View source: R/od_is_valid.R

Description

Checks whether an od object is valid. See details.

Usage

1
od_is_valid(x, verbose = TRUE)

Arguments

x

od object

verbose

should messages be returned about possible invalidations? TRUE by default.

Details

A valid 'od' object should: contain two list items, 'U' and 'E', and three attributes 'od_id', 'od_orig', and 'od_dest'. The values of these attributes are column names of 'U' ('od_id') and 'E' ('od_orig' and 'od_dest'). 'U' should be an 'sf' object (points or polygons), and 'E' a data.frame (optionally an sf object (lines).


mtennekes/odf documentation built on April 4, 2021, 1:10 a.m.