join_sequences: Obtain the set of observed sequences from a trip dataset, the...

Description Usage Arguments Value

View source: R/sequences.R

Description

Obtain the set of observed sequences from a trip dataset, the set of theoretically possible sequences given an ANPR network and compute the set intersection of the two.

Usage

1
join_sequences(G, trip_sequences, method = "e", sep = ",")

Arguments

G

tidygraph of a ANPR network

trip_sequences

tibble of observed trip sequences

method

method to determine the set of possible trip sequences from a ANPR network. If the network is relatively sparse and of small size then this set can be compute exhaustively (method = "e"). Otherwise if the network is too large and it becomes computationally infeasible to compute the set, we use a heuristic (method = "h") to approximate the resulting subset.

sep

character separating elements of a sequence encoded as a string

Value

a tibble of sequences and their counts


ppintosilva/anprflows documentation built on May 20, 2021, 3:25 p.m.