Learn R Programming

EZFragility (version 1.0.3)

$,Epoch-method: Epoch Methods

Description

$electrodes: Get or set electrode names $times: Get or set time points $timeRange: Get time range if time points are defined $data: Get or set data matrix

[: Subset an Epoch object using matrix indexing syntax

nrow, ncol, colnames, rownames, names: Getting the data properties, similar to base R functions.

truncateTime: Truncating time range

Usage

# S4 method for Epoch
$(x, name)

# S4 method for Epoch $(x, name) <- value

# S4 method for Epoch [(x, i, j)

# S4 method for Epoch nrow(x)

# S4 method for Epoch ncol(x)

# S4 method for Epoch colnames(x)

# S4 method for Epoch colnames(x) <- value

# S4 method for Epoch rownames(x)

# S4 method for Epoch rownames(x) <- value

# S4 method for Epoch names(x)

# S4 method for Epoch names(x) <- value

# S4 method for Epoch as.matrix(x)

# S4 method for Epoch as.data.frame(x, row.names = NULL, optional = FALSE, ...)

truncateTime(x, from, to)

# S4 method for Epoch truncateTime(x, from, to)

# S4 method for Epoch show(object)

Value

nrow: Number of rows in the data

ncol: Number of columns in the data

colnames: electrode names of the data

rownames: time points of the data

names: Return all available properties for an Epoch object

truncateTime: Truncated object

Arguments

x

Epoch object

name

a value name, must be one of 'electrodes', 'times', 'timeRange', 'data'

value

Value to set

i

Row (electrode) indices

j

Column (time) indices

row.names

NULL or a character vector giving the row names for the data frame. Missing values are not allowed. See base::data.frame for more details.

optional

Logical. If TRUE, setting row names is optional. See base::data.frame for more details.

...

additional arguments

from

Numeric value specifying start of new time range

to

Numeric value specifying end of new time range

object

Epoch object