Package 'unisensR'

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

Help Index


Get Unisens Custom Attributes

Description

Get Unisens Custom Attributes

Usage

getUnisensCustomAttributes(unisensFolder)

Arguments

unisensFolder

Unisens Folder

Value

hash map of all custom attributes

Examples

unisensPath <- system.file('extdata/unisensExample', package = 'unisensR', mustWork = TRUE)
getUnisensCustomAttributes(unisensPath)

Get Unisens Measurement Id Time

Description

Get Unisens Measurement Id Time

Usage

getUnisensMeasurementId(unisensFolder)

Arguments

unisensFolder

Unisens Folder

Value

string measurement id

Examples

unisensPath <- system.file('extdata/unisensExample', package = 'unisensR', mustWork = TRUE)
getUnisensMeasurementId(unisensPath)

Get Unisens Signal Sample Count

Description

Get Unisens Signal Sample Count

Usage

getUnisensSignalSampleCount(unisensFolder, id)

Arguments

unisensFolder

Unisens Folder

id

ID of the signal entry

Value

Long

Examples

unisensPath <- system.file('extdata/unisensExample', package = 'unisensR', mustWork = TRUE)
getUnisensSignalSampleCount(unisensPath, 'ecg.bin')

Read Unisens Event Entry

Description

Read Unisens Event Entry

Usage

readUnisensEventEntry(unisensFolder, id)

Arguments

unisensFolder

Unisens Folder

id

ID of the event entry.

Value

DataFrame.

Examples

unisensPath <- system.file('extdata/unisensExample', package = 'unisensR', mustWork = TRUE)
readUnisensEventEntry(unisensPath, 'qrs-trigger.csv')

Read Unisens Signal Entry

Description

Read Unisens Signal Entry

Usage

readUnisensSignalEntry(
  unisensFolder,
  id,
  startIndex = 1,
  endIndex = getUnisensSignalSampleCount(unisensFolder, id),
  readInChunks = FALSE,
  readChunkSize = 2^16
)

Arguments

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.

Value

DataFrame.

Examples

unisensPath <- system.file('extdata/unisensExample', package = 'unisensR', mustWork = TRUE)
readUnisensSignalEntry(unisensPath, 'ecg.bin')

Read Unisens Start Time

Description

Read Unisens Start Time

Usage

readUnisensStartTime(unisensFolder)

Arguments

unisensFolder

Unisens Folder

Value

POSIXct unisens start time

Examples

unisensPath <- system.file('extdata/unisensExample', package = 'unisensR', mustWork = TRUE)
readUnisensStartTime(unisensPath)

Read Unisens Values Entry

Description

Read Unisens Values Entry

Usage

readUnisensValuesEntry(unisensFolder, id)

Arguments

unisensFolder

Unisens Folder

id

ID of the values entry.

Value

DataFrame.

Examples

unisensPath <- system.file('extdata/unisensExample', package = 'unisensR', mustWork = TRUE)
readUnisensValuesEntry(unisensPath, 'rr.csv')