get.stay.data: Make data set of travel and stays

Description Usage Arguments Value Author(s) See Also

View source: R/hmob_funcs.R

Description

This function build a data set containing the number of individuals that remain in their home location (stay) or travel to another location during the time span of the survey. The output is designed to provide data for the fit.prob.travel function. The admin unit used to aggregate the travel/stay counts depend on the arguemtns supplied:

  1. When data.pred is supplied and agg.adm = NULL, the lowest admin unit of data.pred is used

  2. When both data.pred and agg.adm are NULL, the lowest admin unit of data is used

Usage

1
get.stay.data(data, data.pred = NULL, agg.adm = NULL, name.class = "character")

Arguments

data

generalized data frame described in travel.survey or derivative thereof

data.pred

generalized data frame containing the admin units at which to predict probability of travel

agg.adm

optional argument (logical) giving an arbitarary admin unit over which to aggregate travel/stay counts

name.class

character indicating whether unique names should be either a unique character string (name.class = "character") or a unique integer code (name.class = "numeric")

Value

dataframe with same columns as travel.survey data with columns for counts of travel/stay/total

Author(s)

John Giles

See Also

Other data synthesis: calc.prop.tot.trips(), calc.route.type(), calc.samp.size(), get.crossdist(), get.distance.class(), get.distance.counts(), get.distance.matrix(), get.district.names.xy(), get.district.pop(), get.duration.counts(), get.holidays(), get.sparse.mob.matrix(), get.subsamp(), get.xy.counts(), mob.data.array(), parse.longform()


gilesjohnr/hmob documentation built on Aug. 8, 2020, 1:26 a.m.