flow.stat: Calculate flow stat between locations

View source: R/flowmap.R

flow.statR Documentation

Calculate flow stat between locations

Description

Calculate flow stat between locations

Usage

flow.stat(loc, stime, etime, gap = 86400)

Arguments

loc

A 1D vector to record locations of movement history

stime

The starting timestamp (SECONDS) vector of movement history

etime

The ending timestamp (SECONDS) vector of movement history

gap

The temporal idle interval

See Also

gen.sessions, flowmap, flowmap2, plot_flowmap

Examples

data(movement)

user_move <- subset(movement, id==1)
sessions <- gen.sessions(user_move[,c("loc", "time")])

res <- with(sessions, flow.stat(loc, stime, etime))
head(res)

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