subsetting-methods: Subsetting/Indexing methods for SeqDataFrames objects in...

Subsetting-methodsR Documentation

Subsetting/Indexing methods for SeqDataFrames objects in Package ‘distrSim’

Description

Operators acting on SeqDataFrames objects to extract or replace parts.

Usage

## S4 method for signature 'SeqDataFrames'
x[i, j, k, drop = FALSE]

## S4 replacement method for signature 'SeqDataFrames'
x[i, j, k] <- value

Arguments

x

object of class SeqDataFrames from which to extract element(s) or in which to replace element(s).

i

observation index; may be missing

j

observation dimension index; may be missing

k

run index; may be missing

drop

as in the general indexing functions

value

modification to be assigned to

Value

again an object of class SeqDataFrames with the prescribed indices / values

Methods

"["

signature(x = "SeqDataFrames"): access method for indices for objects of class SeqDataFrames

"[<-"

signature(x = "SeqDataFrames"): replacement method for indices for objects of class SeqDataFrames

See Also

"["

Examples

s0 <- matrix(1:6,3,2)
d0 <- data.frame(s0)
d1 <- data.frame(s0 + 3)
SF <- SeqDataFrames(d0, d1)
SF[1,2,1]

distrSim documentation built on Jan. 31, 2024, 3:07 a.m.