get_area_visits: Returns indices of when an area was entered for the first...

View source: R/navr-areas.R

get_area_visitsR Documentation

Returns indices of when an area was entered for the first time

Description

Returns indices of when an area was entered for the first time

Usage

get_area_visits(obj, to, from = NULL, between_allowed = 0)

Arguments

obj

navr object with areas.

to

name of the area to which count entrances

from

optional parameter defining from whih area the entrance should be

between_allowed

number of allowed areas to be entered between the from and to. only aplicable if from is set. Designates if the entrance should be counted only if it is N "stops from the from area or if any This is primarily for the reason of defining "no" enter zones or if you have some "buffer" between. e.g. if you want to count how many time supermarket is entered from the "street", but the person has to pass through a "parking lot" area first, you need to set the between_allowed to 1 or higher.

Value

indices of data where the area was entered given argument conditions or NULL if no such visit exists


hejtmy/navr documentation built on March 3, 2023, 5:24 p.m.