read_embrace_plus: Read Embrace Plus data

View source: R/read_embrace_plus.R

read_embrace_plusR Documentation

Read Embrace Plus data

Description

Reads in Embrace Plus data as a list (with EDA, HR, Temp, ACC, BVP, IBI as dataframes), and prepends timecolumns

Usage

read_embrace_plus(
  zipfile = NULL,
  folder = NULL,
  type = "raw",
  tz = Sys.timezone()
)

Arguments

zipfile

A zip file as exported by the instrument. Can be aggregated data, or raw data.

folder

A folder with the unzipped files. If this is provided, the zipfile is not used.

type

The type of data contained in the zip file or folder. Either "raw" or "aggregated".

tz

The timezone used by the instrument (defaults to user timezone).

Details

This function reads in a zipfile with data from the Embrace Plus device, or a folder with unzipped files. The unzipped files are avro or csv files.

The unzipped files are avro or csv files, where avro files are read in with using 'sparklyr', which sets up a local Spark cluster.

The function returns an object of class "embrace_plus_data" with a prepended datetime columns. The object contains a list with dataframes from the physiological signals.

Examples

## Not run: 
 library(wearables)
 read_embrace_plus(zipfile = "yourpathtohezipfile.zip")
 read_embrace_plus(folder = "/path/to/folder/with/files", type = "aggregated")

## End(Not run)

PCdLf/wearables documentation built on Nov. 19, 2024, 5:57 p.m.