Title: | Read 'Unisens' Data |
---|---|
Description: | Provides the ability to read 'Unisens' data into R. 'Unisens' is a universal data format for multi sensor data. |
Authors: | Martin Penzel [ctb, cre], Jürgen Stumpp [aut], Jörg Ottenbacher [ctb], Stephan Grund [ctb], movisens GmbH [cph] |
Maintainer: | Martin Penzel <[email protected]> |
License: | LGPL |
Version: | 0.3.4 |
Built: | 2025-02-10 04:13:56 UTC |
Source: | https://github.com/unisens/unisensr |
Get Unisens Custom Attributes
getUnisensCustomAttributes(unisensFolder)
getUnisensCustomAttributes(unisensFolder)
unisensFolder |
Unisens Folder |
hash map of all custom attributes
unisensPath <- system.file('extdata/unisensExample', package = 'unisensR', mustWork = TRUE) getUnisensCustomAttributes(unisensPath)
unisensPath <- system.file('extdata/unisensExample', package = 'unisensR', mustWork = TRUE) getUnisensCustomAttributes(unisensPath)
Get Unisens Measurement Id Time
getUnisensMeasurementId(unisensFolder)
getUnisensMeasurementId(unisensFolder)
unisensFolder |
Unisens Folder |
string measurement id
unisensPath <- system.file('extdata/unisensExample', package = 'unisensR', mustWork = TRUE) getUnisensMeasurementId(unisensPath)
unisensPath <- system.file('extdata/unisensExample', package = 'unisensR', mustWork = TRUE) getUnisensMeasurementId(unisensPath)
Get Unisens Signal Sample Count
getUnisensSignalSampleCount(unisensFolder, id)
getUnisensSignalSampleCount(unisensFolder, id)
unisensFolder |
Unisens Folder |
id |
ID of the signal entry |
Long
unisensPath <- system.file('extdata/unisensExample', package = 'unisensR', mustWork = TRUE) getUnisensSignalSampleCount(unisensPath, 'ecg.bin')
unisensPath <- system.file('extdata/unisensExample', package = 'unisensR', mustWork = TRUE) getUnisensSignalSampleCount(unisensPath, 'ecg.bin')
Read Unisens Event Entry
readUnisensEventEntry(unisensFolder, id)
readUnisensEventEntry(unisensFolder, id)
unisensFolder |
Unisens Folder |
id |
ID of the event entry. |
DataFrame.
unisensPath <- system.file('extdata/unisensExample', package = 'unisensR', mustWork = TRUE) readUnisensEventEntry(unisensPath, 'qrs-trigger.csv')
unisensPath <- system.file('extdata/unisensExample', package = 'unisensR', mustWork = TRUE) readUnisensEventEntry(unisensPath, 'qrs-trigger.csv')
Read Unisens Signal Entry
readUnisensSignalEntry( unisensFolder, id, startIndex = 1, endIndex = getUnisensSignalSampleCount(unisensFolder, id), readInChunks = FALSE, readChunkSize = 2^16 )
readUnisensSignalEntry( unisensFolder, id, startIndex = 1, endIndex = getUnisensSignalSampleCount(unisensFolder, id), readInChunks = FALSE, readChunkSize = 2^16 )
unisensFolder |
String containing path to Unisens folder. |
id |
String containing ID of the signal entry. |
startIndex |
Integer of the value-index on which the read process starts, default: 1. |
endIndex |
Integer of the value-index on which the read process ends, default: last Index of file. |
readInChunks |
Boolean determines if the reading process is done in chunks. This could be useful if you run into memory limits when reading big files. default: FALSE. |
readChunkSize |
Integer defining the size of chunks if chunk reading is enabled, defined in samples, default: 2^16. |
DataFrame.
unisensPath <- system.file('extdata/unisensExample', package = 'unisensR', mustWork = TRUE) readUnisensSignalEntry(unisensPath, 'ecg.bin')
unisensPath <- system.file('extdata/unisensExample', package = 'unisensR', mustWork = TRUE) readUnisensSignalEntry(unisensPath, 'ecg.bin')
Read Unisens Start Time
readUnisensStartTime(unisensFolder)
readUnisensStartTime(unisensFolder)
unisensFolder |
Unisens Folder |
POSIXct unisens start time
unisensPath <- system.file('extdata/unisensExample', package = 'unisensR', mustWork = TRUE) readUnisensStartTime(unisensPath)
unisensPath <- system.file('extdata/unisensExample', package = 'unisensR', mustWork = TRUE) readUnisensStartTime(unisensPath)
Read Unisens Values Entry
readUnisensValuesEntry(unisensFolder, id)
readUnisensValuesEntry(unisensFolder, id)
unisensFolder |
Unisens Folder |
id |
ID of the values entry. |
DataFrame.
unisensPath <- system.file('extdata/unisensExample', package = 'unisensR', mustWork = TRUE) readUnisensValuesEntry(unisensPath, 'rr.csv')
unisensPath <- system.file('extdata/unisensExample', package = 'unisensR', mustWork = TRUE) readUnisensValuesEntry(unisensPath, 'rr.csv')