get.district.names.xy: Add district names and coordinates to long form data set

Description Usage Arguments Value Author(s) See Also Examples

View source: R/hmob_funcs.R

Description

This function takes output from the parse.long.form function and appends columns containing district names and coordinates

Usage

1

Arguments

a

expects output from parse.long.form (trip_durations_longform.csv)

b

expects data object d.meta.1 (namibia_adm2_centroids_name_number_mapping.csv)

Value

dataframe

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.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
4
5
6
7
# Add district names and coordinates
t <- Sys.time()
tmp <- get.district.names.xy(
     a=read.csv("BeyondCommuting2/trip_lengths/trip_durations_longform.csv"), 
     b=read.csv("BeyondCommuting2/data/namibia_adm2_centroids_name_number_mapping.csv")
)
head(tmp)

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