$,Epoch-method {EZFragility}R Documentation

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 signature 'Epoch'
x$name

## S4 replacement method for signature 'Epoch'
x$name <- value

## S4 method for signature 'Epoch'
x[i, j]

## S4 method for signature 'Epoch'
nrow(x)

## S4 method for signature 'Epoch'
ncol(x)

## S4 method for signature 'Epoch'
colnames(x)

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

## S4 method for signature 'Epoch'
rownames(x)

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

## S4 method for signature 'Epoch'
names(x)

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

## S4 method for signature 'Epoch'
as.matrix(x)

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

truncateTime(x, from, to)

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

## S4 method for signature 'Epoch'
show(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

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


[Package EZFragility version 1.0.3 Index]