read_hrv_matlab: Read in Toolbox HRV

Description Usage Arguments Details Value

View source: R/dev-matlab_toolbox.R

Description

Takes the output from HRV Toolbox and reads it in for an individual patient. Unlike card::proc_hrv_matlab, this does not process or summarize the data, it just reads it the raw analysis. Uses the package data.table::fread() for reading in data due to size/speed.

Usage

1

Arguments

loc

Location of the folder that contains all of the patients that were analyzed by the Main_HRV_Analysis.m function from the Toolbox

name

Name of the patient/ID. There should exist a folder with the name inside the loc folder. Inside this folder are all the Toolbox parameters and HRV results in CSV format. 3600 seconds (which is 1 hour)

Details

The data is taken sequentially (sliding windows), and is not processed. It is reported and is likely a large file.

Value

Data frame of HRV summarized by the grouping variable (e.g. 3600 seconds = 1 hour). Also returns an additional column of percent missing (e.g. 20.0% missing data) by time group.


card documentation built on Sept. 3, 2020, 9:07 a.m.