Learn R Programming

Epoch (version 1.0.3)

coltimes: Obtain the time points for the Epoch matrix

Description

Obtain the time points for the Epoch matrix

Usage

coltimes(x)

# S4 method for Epoch coltimes(x)

Value

A numeric vector of time points, or column indices if time points are not defined

Arguments

x

An Epoch object

See Also

Other Epoch methods: crop(), plot,Epoch,missing-method, resample(), show,Epoch-method

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)

# get the time points of an Epoch object
coltimes(epoch)

Run the code above in your browser using DataLab