le2i: Converts epochs to intervals

View source: R/luna.R

le2iR Documentation

Converts epochs to intervals

Description

Returns an interval list corresponding to epochs

Usage

le2i(e, dur = 30, inc = 30)

Arguments

e

a required parameter, a vector of 1-based epochs

dur

(optional) sets the epoch length to be used (default 30 seconds)

inc

(optional) set the epoch increment to be used (default 30 seconds)

Value

an interval list, in the format used by lannots(annot) and ldata.intervals(), for example

Examples

le2i(1:4)

remnrem/luna documentation built on June 1, 2025, 2:14 p.m.