Skip to contents

Summarizing data sets

Test datasets

hh
Test household dataset
person
Test person dataset
day
Test day dataset
trip
Test trip dataset
vehicle
Test vehicle dataset
test_data
Test household travel survey dataset
value_labels
List of values and their labels
variable_list
List of variables

Prepping data frames

hts_prep_variable()
Prepare datasets to make summaries
hts_prep_triprate()
Prepare datasets for trip rate calculations
hts_prep_byvar()
Prepare variable to be summarized

Summarizing variables

hts_summary()
Make household travel survey summaries
hts_summary_cat()
Summarize a categorical variable
hts_summary_num()
Summarize a numeric variable
hts_to_so()
Transform travel survey data.table to a survey object
hts_summary_wrapper()
Make household travel survey summaries-- runs hts_prep_variable and hts_summary

Helper functions

factorize_column()
Factorize a column.
factorize_df()
Factorize a dataframe
hts_bin_var()
Bin numeric variables
hts_calculate_vmt()
Calculate vmt for each trip
hts_cbind_var()
Bind a column from one table to another
hts_filter_data()
Filter datasets to only keep specified ids
hts_find_var()
Find table location of a variable
hts_get_ns()
Get counts from dataset
hts_melt_vars()
Melts checkbox variables into a single variable
hts_remove_missing_data()
Remove missing data for summary variables
hts_remove_outliers()
Remove outliers from a numeric variable
hts_trip_vehid()
Add vehicle_id to trip table
join_spatial()
Join spatial data to points
get_distance_meters()
Get distance between points
hts_validate_variable_list()
Check that variable list has required elements for hts_prep_variable returns updated variable list or prompts error