Package: mpathsenser 1.2.3.9000

mpathsenser: Process and Analyse Data from m-Path Sense

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.

Authors:Koen Niemeijer [aut, cre], Kristof Meers [ctb], KU Leuven [cph, fnd]

mpathsenser_1.2.3.9000.tar.gz
mpathsenser_1.2.3.9000.zip(r-4.5)mpathsenser_1.2.3.9000.zip(r-4.4)mpathsenser_1.2.3.9000.zip(r-4.3)
mpathsenser_1.2.3.9000.tgz(r-4.4-any)mpathsenser_1.2.3.9000.tgz(r-4.3-any)
mpathsenser_1.2.3.9000.tar.gz(r-4.5-noble)mpathsenser_1.2.3.9000.tar.gz(r-4.4-noble)
mpathsenser_1.2.3.9000.tgz(r-4.4-emscripten)mpathsenser_1.2.3.9000.tgz(r-4.3-emscripten)
mpathsenser.pdf |mpathsenser.html
mpathsenser/json (API)
NEWS

# Install 'mpathsenser' in R:
install.packages('mpathsenser', repos = c('https://koenniem.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/koenniem/mpathsenser/issues

On CRAN:

mobile-sensing

4.60 score 1 stars 5 scripts 250 downloads 34 exports 41 dependencies

Last updated 3 months agofrom:124e9b731b. Checks:OK: 7. Indexed: yes.

TargetResultDate
Doc / VignettesOKOct 21 2024
R-4.5-winOKOct 21 2024
R-4.5-linuxOKOct 21 2024
R-4.4-winOKOct 21 2024
R-4.4-macOKOct 21 2024
R-4.3-winOKOct 21 2024
R-4.3-macOKOct 21 2024

Exports:add_gapsapp_categorybin_dataccopyclose_dbcopy_dbcoveragecreate_dbdecrypt_gpsdevice_infofirst_datefix_jsonsfreqgeocode_revget_dataget_nrowsget_participantsget_processed_filesget_studieshaversineidentify_gapsimportindex_dbinstalled_appslast_datelinklink_dblink_gapsmoving_averageopen_dbsensorstest_jsonsunzip_datavacuum_db

Dependencies:bitbit64blobcachemclicodetoolscpp11DBIdbplyrdigestdplyrfansifastmapfurrrfuturegenericsglobalsgluejsonlitelifecyclelistenvlubridatemagrittrmemoiseparallellypillarpkgconfigplogrpurrrR6rlangRSQLitestringistringrtibbletidyrtidyselecttimechangeutf8vctrswithr

Get started

Rendered frommpathsenser.Rmdusingknitr::rmarkdownon Oct 21 2024.

Last update: 2024-02-28
Started: 2022-06-28

Readme and manuals

Help Manual

Help pageTopics
Add gap periods to sensor dataadd_gaps
Find the category of an app on the Google Play Storeapp_category
Create bins in variable time seriesbin_data
Copy mpathsenser zip files to a new locationccopy
Close a database connectionclose_db
Copy (a subset of) a database to another databasecopy_db
Create a coverage chart of the sampling ratecoverage
Create a new mpathsenser databasecreate_db
Decrypt GPS data from a curve25519 public keydecrypt_gps
Get the device info for one or more participantsdevice_info
Extract the date of the first entryfirst_date
Fix the end of JSON filesfix_jsons
Measurement frequencies per sensorfreq
Reverse geocoding with latitude and longitudegeocode_rev
Extract data from an m-Path Sense databaseget_data
Get the number of rows per sensor in a mpathsenser databaseget_nrows
Get all participantsget_participants
Get all processed files from a databaseget_processed_files
Get all studiesget_studies
Calculate the Great-Circle Distance between two points in kilometershaversine
Identify gaps in mpathsenser mobile sensing dataidentify_gaps
Import m-Path Sense files into a databaseimport
Create indexes for an mpathsenser databaseindex_db
Get installed appsinstalled_apps
Extract the date of the last entrylast_date
Link y to the time scale of xlink
Link two sensors OR one sensor and an external data frame using an mpathsenser databaselink_db
Link gaps to (ESM) datalink_gaps
Moving average for values in an mpathsenser databasemoving_average
Open an mpathsenser database.open_db
Plot a coverage overviewplot.coverage
Available Sensorssensors
Test JSON files for being in the correct format.test_jsons
Unzip m-Path Sense outputunzip_data
Vacuum a databasevacuum_db