Learn R Programming

distrSim (version 2.8.3)

Subsetting-methods: Subsetting/Indexing methods for SeqDataFrames objects in Package `distrSim'

Description

Operators acting on SeqDataFrames objects to extract or replace parts.

Usage

# S4 method for SeqDataFrames
[(x, i, j, k, drop = FALSE)

# S4 method for SeqDataFrames [(x, i, j, k) <- value

Value

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

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

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

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

Run the code above in your browser using DataLab