Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

read_hrv_matlab

Read in Toolbox HRV


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

read_hrv_matlab(loc, name)

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

Cardiovascular and Autonomic Research Design

v0.1.0
MIT + file LICENSE
Authors
Anish S. Shah [aut, cre, cph] (<https://orcid.org/0000-0002-9729-1558>)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.