seconds_to_indices: Get the indices corresponding to the times t0 and t1 given in...

Description Usage Arguments Value See Also

Description

Get the indices corresponding to the times t0 and t1 given in seconds.

Usage

1
seconds_to_indices(recording, t0, t1 = NULL, signal = NULL)

Arguments

recording

A recording structure.

t0

The start in seconds, from the start of the recording.

t1

The stop timestamp (as a string or as a POSIXct timestamp). Optional, default is NULL

signal

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

Value

The index corresponding to t0, or if t1 is also given, a two-element list with indices corresponding to t0 and t1.

See Also

Other utilities: defactor, ensure_path, extract_segment_block, extract_segment_s, extract_segment_timestamp, extract_segment, 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, str_to_timestamp, timeintervals_to_seconds, timestamp_to_seconds, timestamp_to_str


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