extract_segment: Extract a segment of a signal corresponding to the given...

Description Usage Arguments Value See Also

Description

Extract a segment of a signal corresponding to the given indices.

Usage

1
extract_segment(recording, ind1, ind2 = NULL, signal = NULL)

Arguments

recording

A recording structure.

ind1

Start index or a two-element list giving the start and stop index.

ind2

Stop index. Optional, default is NULL, in which case ind1 must a two-element list.

signal

A signal name found in the recording. Optional, default is NULL.

Value

A named list with the fields "data" and "t" from signal corresponding to the given indices.

See Also

Other utilities: defactor, ensure_path, extract_segment_block, extract_segment_s, extract_segment_timestamp, generate_result_row, generate_segments_from_block, generate_segments, get_file_extension, get_filename_parts, hr_from_ibi, ibi_from_ecg, integrate_power, num_to_timestamp, replicate_df_row, seconds_to_indices, str_to_timestamp, timeintervals_to_seconds, timestamp_to_seconds, timestamp_to_str


bwrc/colibri documentation built on May 13, 2019, 9:10 a.m.