mpathsenser1.2.4 package

Process and Analyse Data from m-Path Sense

close_db

Close a database connection

copy_db

Copy (a subset of) a database to another database

coverage

Create a coverage chart of the sampling rate

create_db

Create a new mpathsenser database

get_data

Extract data from an m-Path Sense database

installed_apps

Get installed apps

last_date

Extract the date of the last entry

n_screen_unlocks

Get number of screen unlocks

open_db

Open an mpathsenser database.

plot.coverage

Plot a coverage overview

screen_duration

Screen duration by hour or day

sensors

Available Sensors

step_count

Get step count

activity_duration

Get a summary of physical activity (recognition)

add_gaps

Add gap periods to sensor data

add_timezones_to_db

Add timezone to measurements in an m-Path Sense database

alias_column_names

Alias column names of a data frame containing sensor data

app_category

Find the category of an app on the Google Play Store

app_usage

Get app usage per hour

bin_data

Create bins in variable time series

ccopy

Copy mpathsenser zip files to a new location

decrypt_gps

Decrypt GPS data from a curve25519 public key

device_info

Get the device info for one or more participants

first_date

Extract the date of the first entry

fix_jsons

Fix the end of JSON files

freq

Measurement frequencies per sensor

geocode_rev

Reverse geocoding with latitude and longitude

get_nrows

Get the number of rows per sensor in a mpathsenser database

get_participants

Get all participants

get_processed_files

Get all processed files from a database

get_studies

Get all studies

haversine

Calculate the Great-Circle Distance between two points in kilometers

identify_gaps

Identify gaps in mpathsenser mobile sensing data

import

Import m-Path Sense files into a database

index_db

Create indexes for an mpathsenser database

link_db

Link two sensors OR one sensor and an external data frame using an mpa...

link_gaps

Link gaps to (ESM) data

link

Link y to the time scale of x

moving_average

Moving average for values in an mpathsenser database

mpathsenser-package

mpathsenser: Process and Analyse Data from m-Path Sense

n_screen_on

Get number of times screen turned on

test_jsons

Test JSON files for being in the correct format.

unpack_sensor_data

Unpack raw sensor data

unzip_data

Unzip m-Path Sense output

vacuum_db

Vacuum a database

with_localtime

Convert timestamps to UTC while respecting local timezones

Overcomes one of the major challenges in mobile (passive) sensing, namely being able to pre-process the raw data that comes from a mobile sensing app, specifically 'm-Path Sense' <https://m-path.io>. The main task of 'mpathsenser' is therefore to read 'm-Path Sense' JSON files into a database and provide several convenience functions to aid in data processing.

  • Maintainer: Koen Niemeijer
  • License: GPL (>= 3)
  • Last published: 2025-11-13