Learn R Programming

Epoch (version 1.0.3)

dim,Epoch-method: Wrapper functions for calling TableContainer methods

Description

Wrapper functions for calling TableContainer methods

Usage

# S4 method for Epoch
dim(x)

# S4 method for Epoch dimnames(x)

# S4 method for Epoch [(x, i, j, ..., drop = TRUE)

Value

[: A new Epoch object with the selected data.

Arguments

x

An Epoch object

i

Row indices for subsetting. If only i is provided, it will return the entire row(s).

j

Column indices for subsetting.

...

Additional arguments.

drop

Not used.

Examples

Run this code

# Create an Epoch object
epoch_data <- matrix(rnorm(1000), nrow = 10)
rownames(epoch_data) <- paste0("Electrode_", 1:10)
epoch <- Epoch(epoch_data, startTime = 0, samplingRate = 100)

# wrappers
dim(epoch)
dimnames(epoch)
epoch[1]

Run the code above in your browser using DataLab