people.occurrence: People occurrence at each stay point.

View source: R/data_quality.R

people.occurrenceR Documentation

People occurrence at each stay point.

Description

Calculate the identifiability of a person within a stay point's coverage. The identifiability is given via the average number of unique people present in the data. The more occurrence of people, the lower of identifiability to detect a specific person in the coverage.

Usage

people.occurrence(uid, x, y)

Arguments

uid

a vector of user id

x, y

vectors of user's locations

Value

a data.frame with columns: uid, x, y, occur, occur.r

occur the number of unique people detected at a stay point

occur.r the nomalized ratio of occur.

Examples

people.occurrence(movement$id, movement$lon, movement$lat)

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