Data_Input: Input Data Organization/Cleaning Function

Data_InputR Documentation

Input Data Organization/Cleaning Function

Description

This function takes the user's heart rate variation (HRV) data and turns it into a useable form for the rest of this package. Output from heart rate monitors used in research are typically either in RR values or MS values. RR values are the milliseconds ellapsed between successive heart beats, while MS values are a chronological millisecond value that marks when each heart beat occurs. All statistical values used in HRV take RR values as an input. Therefore, if the user chooses to upload MS values, the function will transform it into RR values.

Usage

Data_Input(imported_data, input, segment, min, max)

Arguments

imported_data

Imported csv file.

input

RR or MS values.

segment

Specifies the upper and lower bounds by minutes.

min

If segment is true, what is the minimum value.

max

If segment is true, what is the maximum value.

Details

The function allows the user to specify the time frame that they are interested in, using the "segment" option. The function intakes a minute min/max value to specify the bounds of their data that they are interested in. In the literature, the HRV segments less than 30 seconds are not valid and their use is not advised. Therefor, the program writes a warning if the user chooses to to use a HRV segment less than 30 seconds.

The function assumes that the user is uploading a csv file with the ms or RR values in a single row. This matches the type of output given by most heart rate monitoring software.

Value

A dataframe.


mrooyakkers/TimeDomainHRVPackage documentation built on Jan. 12, 2023, 11:37 a.m.