readUnisensSignalEntry: Read Unisens Signal Entry

Description Usage Arguments Value Examples

View source: R/unisensR.R

Description

Read Unisens Signal Entry

Usage

1
2
3
4
5
6
7
8
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

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

unisensR documentation built on April 29, 2020, 9:37 a.m.