Learn R Programming

ernm (version 1.0.0)

extract-methods: Subsetting and assignment for Net objects

Description

These methods allow standard subsetting (`[`) and assignment (`[<-`) for `DirectedNet` and `UndirectedNet` objects.

Usage

# S4 method for DirectedNet,ANY,ANY,ANY
[(x, i, j, ..., maskMissing = TRUE, drop = TRUE)

# S4 method for UndirectedNet,ANY,ANY,ANY [(x, i, j, ..., maskMissing = TRUE, drop = TRUE)

# S4 method for DirectedNet [(x, i, j, ...) <- value

# S4 method for UndirectedNet [(x, i, j, ...) <- value

Value

A modified object or extracted submatrix depending on the method.

Arguments

x

A `DirectedNet` or `UndirectedNet` object.

i, j

Index vectors.

...

Currently unused.

maskMissing

Logical. Should missing values be masked by NA?

drop

Ignored (present for compatibility).

value

Values to assign (for `[<-` only).