ModifyEpisodes: Modifies values of episodes

Description Usage Arguments Value Author(s) References

View source: R/ModifyEpisodes.R

Description

This function allow users to modify the parameters that define episodes: Tags, InitTimes, Durations and Values.

Episodes can be selected by Tags or Indexes (or both) and more than one episodes' characteristics can be modified within the same call.

When modifying more than one episode, vectors of new parameters are recycled.

After the modification has been made, duplicate episodes are removed and they are reordered by increasing InitTimes.

Usage

1
2
ModifyEpisodes(HRVData, Tags=NULL, Indexes=NULL, NewInitTimes=NULL,
NewTags=NULL, NewDurations=NULL ,NewValues=NULL)

Arguments

HRVData

Data structure that stores the beats register and information related to it

Tags

Vector containing types of episodes to remove

Indexes

Vector containing indexes of episodes to remove (see ListEpisodes())

NewInitTimes

Vector containing new init times in seconds

NewTags

Vector containing new tags for episodes

NewDurations

Vector containing new durations in seconds

NewValues

Vector containing new numerical values for episodes

Value

Returns HRVData, the structure that contains beat positions register and new episodes information

Author(s)

M. Lado, A. Mendez, D. Olivieri, L. Rodriguez, X. Vila

References

L. Rodriguez-Linares, A. Mendez, M. Lado, D. Olivieri, X. Vila, I. Gomez-Conde, "An open source tool for heart rate variability spectral analysis", Computer Methods and Programs in Biomedicine 103, 39-50, doi:10.1016/j.cmpb.2010.05.012 (2011)


RHRV documentation built on May 20, 2017, 12:26 a.m.

Search within the RHRV package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.