View source: R/read_embrace_plus.R
read_embrace_plus | R Documentation |
Reads in Embrace Plus data as a list (with EDA, HR, Temp, ACC, BVP, IBI as dataframes), and prepends timecolumns
read_embrace_plus(
zipfile = NULL,
folder = NULL,
type = "raw",
tz = Sys.timezone()
)
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). |
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.
## Not run:
library(wearables)
read_embrace_plus(zipfile = "yourpathtohezipfile.zip")
read_embrace_plus(folder = "/path/to/folder/with/files", type = "aggregated")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.