readUnisensSignalEntry: Read Unisens Signal Entry

View source: R/unisensR.R

readUnisensSignalEntryR Documentation

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')

Unisens/unisensR documentation built on July 15, 2022, 3:04 p.m.