View source: R/ModifyEpisodes.R
ModifyEpisodes | R Documentation |
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.
ModifyEpisodes(HRVData, Tags=NULL, Indexes=NULL, NewInitTimes=NULL,
NewTags=NULL, NewDurations=NULL ,NewValues=NULL)
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 |
Returns HRVData, the structure that contains beat positions register and new episodes information
M. Lado, A. Mendez, D. Olivieri, L. Rodriguez, X. Vila
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.