calc.samp.size: Get the sample size of a route-level 'mob.data.array' matrix...

Description Usage Arguments Value Author(s) See Also Examples

View source: R/hmob_funcs.R

Description

This function takes the output from a the mob.data.array or mob.data.array.route.level functions and calculates the sample size of unique observations of the variable along the last dimension of the array (e.g. columns of a 2D matrix or the third dimension in a 3D array)

Usage

1

Arguments

x

a three dimensional array produced by the mob.data.array.route.level function

Value

a named array, matrix, or vector of sample sizes

Author(s)

John Giles

See Also

Other data synthesis: calc.prop.tot.trips(), calc.route.type(), 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.stay.data(), get.subsamp(), get.xy.counts(), mob.data.array(), parse.longform()

Examples

1
2
3
load('./data/duration_data_arrays_3day_full.Rdata') # y.month, y.route, y.pop 

samp.size <- calc.samp.size(y.route)

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