Skip to contents

All functions

add_date_and_format()
Add date and format to activity counts
assign_epoch_start_time()
Assign Epoch Start Time
collate_arguments()
Collate Arguments This function collates user-provided arguments with pre-defined parameters and constants.
constants
List of Constants non_wearing_min_threshold_epochs Number of consecutive epochs with activity counts of 0 that constitute a non_wearing period. min_wearing_hours_per_day Minimum number of hours in a day an individual must wear an accelerometer for the day to be considered complete. min_gps_obs_within_bout Minimum number of GPS observations within a bout for that bout to be considered to have complete GPS data. min_gps_coverage_ratio Minimum ratio of data points with versus without GPS data for the bout to be considered to have complete GPS data. dwellbout_radii_quantile Threshold for outliering GPS data points - any data points above the 95th percentile are outliered. max_dwellbout_radii_ft Maximum radius, in feet, of a bounding circle that would be considered a dwell bout (rather than a potential walk bout). min_dwellbout_obs Minimum number of observations to consider something a potential dwell bout. max_walking_cpe Maxiumum CPE value before the accelerometer is considered to be picking up on an activity other than walking. min_walking_speed_km_h Minimum speed considered walking. max_walking_speed_km_h Maximum speed considered walking.
evaluate_gps_completeness()
Evaluate GPS completeness for each walking bout
generate_bout_category()
Generate bout categories
generate_bout_plot()
Generate Bout Plot
generate_bout_radius()
Generate Bounding Circle Radius for Walking Bouts
generate_gps_data()
Generate a dataset with date-time, speed, and latitude and longitude of someone moving through space on a walk in Seattle
generate_walking_in_seattle_gps_data()
Generate GPS data for a walking activity in Seattle, WA
identify_bouts()
Identify Bouts:
identify_complete_days()
Identify complete wearing days This function identifies complete days based on accelerometry data by calculating the total number of epochs worn per day and comparing it to the minimum number of wearing epochs per day required to consider a day complete.
identify_non_wearing_periods()
Identify non-wearing periods: This function identifies non-wearing periods in accelerometry data based on a threshold of consecutive epochs with activity counts of 0.
identify_walk_bouts_in_gps_and_accelerometry_data()
Identify walking bouts in GPS and accelerometry data:
make_active_period()
Generate accelerometry datasets
make_full_day_bout()
Create activity counts for a full day bout
make_full_day_bout_without_metadata()
Create activity counts for a full day bout without metadata
make_full_walk_bout_df()
Create a data frame of walking bouts with GPS data
make_inactive_period()
Create an inactive period
make_non_bout_window()
Create a non-bout window
make_smallest_bout()
Make the smallest bout dataset
make_smallest_bout_window()
Create the smallest bout window
make_smallest_bout_with_largest_inactive_period()
Generate a sequence of accelerometer counts representing the smallest bout with the largest inactive period
make_smallest_bout_with_smallest_non_wearing_period()
Generate the smallest bout with the smallest non-wearing period dataset
make_smallest_bout_without_metadata()
Create the smallest bout window without metadata
make_smallest_complete_day_activity()
Generate an activity sequence for a complete day with minimal activity
make_smallest_nonwearing_window()
Create smallest non-wearing window
next_lat_long()
Calculate next latitude and longitude based on current location, speed, direction, and time elapsed.
outlier_gps_points()
Outlier GPS data points This function identifies outlier GPS points for the bout radius calculation from a given set of latitude and longitude coordinates.
parameters
Global parameters and constants
process_accelerometry_counts_into_bouts()
Process Accelerometry Counts into Bouts
process_bouts_and_gps_epochs_into_walkbouts()
Process bouts and GPS epochs into walk bouts
process_gps_data_into_gps_epochs()
Convert GPS data into GPS epochs
run_length_encode()
Run Length Encoding:
summarize_walk_bouts()
Summarize walking bouts: This function summarizes walking bouts and calculates the median speed, complete day, non-wearing, bout start, and duration of each bout.
validate_accelerometry_data()
Validate accelerometry input data
validate_gps_data()
Validate GPS data