Skip to contents

Import data

import() stable
Import m-Path Sense files into a database
fix_jsons() experimental
Fix the end of JSON files
test_jsons() stable
Test JSON files for being in the correct format.
unzip_data() stable
Unzip m-Path Sense output
ccopy() stable
Copy mpathsenser zip files to a new location
add_timezones_to_db() experimental
Add timezone to measurements in an m-Path Sense database

Database handling

create_db() stable
Create a new mpathsenser database
open_db() stable
Open an mpathsenser database.
close_db() stable
Close a database connection
index_db() deprecated
Create indexes for an mpathsenser database
copy_db() stable
Copy (a subset of) a database to another database
vacuum_db() stable
Vacuum a database

Data retrieval

get_data() stable
Extract data from an m-Path Sense database
get_participants() stable
Get all participants
get_processed_files() stable
Get all processed files from a database
get_studies() stable
Get all studies
get_nrows() stable
Get the number of rows per sensor in a mpathsenser database
first_date() stable
Extract the date of the first entry
last_date() stable
Extract the date of the last entry

Coverage chart

coverage() stable
Create a coverage chart of the sampling rate
plot(<coverage>)
Plot a coverage overview

Data transformation

link() stable
Link y to the time scale of x
link_db() deprecated
Link two sensors OR one sensor and an external data frame using an mpathsenser database
link_gaps() stable
Link gaps to (ESM) data
identify_gaps() stable
Identify gaps in mpathsenser mobile sensing data
add_gaps() stable
Add gap periods to sensor data
bin_data() stable
Create bins in variable time series
moving_average() experimental
Moving average for values in an mpathsenser database
with_localtime() experimental
Convert timestamps to UTC while respecting local timezones

Sensor-specific functions

device_info() stable
Get the device info for one or more participants
app_category() stable
Find the category of an app on the Google Play Store
installed_apps() stable
Get installed apps
decrypt_gps() stable
Decrypt GPS data from a curve25519 public key
haversine() stable
Calculate the Great-Circle Distance between two points in kilometers
geocode_rev() experimental
Reverse geocoding with latitude and longitude

Miscellaneous

sensors stable
Available Sensors
freq
Measurement frequencies per sensor