flowmap2: Generate flowmap from movement data

View source: R/flowmap.R

flowmap2R Documentation

Generate flowmap from movement data

Description

Use historical movement data to generate flowmap, which records mobility statistics between two locations 'from' and 'to'.

Usage

flowmap2(uid, loc, stime, etime, gap = 86400)

Arguments

uid

a vector to record user identities

loc

a 1D vector to record locations of movement history

stime, etime

compressed session time at each location

gap

the maximum dwelling time to consider a valid move between locations

Details

Different from flowmap, compressed movement history is used to generate flow statistics.

Value

a data frame with four columns: from, to, total, unique (users)

See Also

gen.sessions, flowmap, flow.stat, plot_flowmap


caesar0301/movr documentation built on June 18, 2022, 2:37 a.m.