events: Modify events structure

View source: R/event_codes.R

eventsR Documentation

Modify events structure

Description

Get or set the values in the events structure of an eegUtils object.

Usage

events(.data)

events(.data) <- value

## S3 replacement method for class 'eeg_epochs'
events(.data) <- value

## S3 replacement method for class 'eeg_data'
events(.data) <- value

Arguments

.data

eegUtils object to view

value

Value to replace events structure with.

Author(s)

Matt Craddock matt@mattcraddock.com

See Also

Other event handlers: list_epochs(), list_events(), tag_events()

Examples

events(demo_epochs)
events(demo_epochs) <- mutate(events(demo_epochs),
 sf = dplyr::case_when(
         event_type %% 2 == 0 ~ "HSF",
         event_type %% 2 == 1 ~ "LSF",
 ))
events(demo_epochs)


neuroconductor/eegUtils documentation built on Feb. 3, 2023, 5:33 p.m.