events: Modify events structure

Description Usage Arguments Author(s) See Also Examples

View source: R/event_codes.R

Description

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

Usage

1
2
3
4
5
6
7
8
9
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

1
2
3
4
5
6
7
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)

kusumikakd/EEG documentation built on June 28, 2020, 12:30 a.m.