subsetEMG | R Documentation |
Subset raw EMG
subsetEMG(x, cy_max, cy_start = 1)
x |
Objects of class |
cy_max |
Maximum number of cycles to be considered |
cy_start |
From which cycle should the subset begin? |
Lists in the correct format can be created with the function rawdata()
.
The first column of each emg
element must be time in the same units as those
used for cycles
(e.g., [s] or [ms]). For locomotion, thirty cycles
are enough for proper synergy extraction (Oliveira et al. 2014).
Object of class EMG
with elements:
cycles
data frame containing cycle timings, with as many columns as many cycle subdivisions are wanted
emg
data frame containing raw EMG data in columns, first column is time
Oliveira, A. S. C., Gizzi, L., Farina, D. & Kersting, U. G. Motor modules of human locomotion: influence of EMG averaging, concatenation, and number of step cycles. Front. Hum. Neurosci. 8, 335 (2014).
# Load some data data("RAW_DATA") # Subset example raw data to the first 3 cycles RAW_DATA_sub <- lapply( RAW_DATA, function(x) { subsetEMG(x, cy_max = 3, cy_start = 1 ) } )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.