Learn R Programming

mrf2d (version 0.3)

length,mrfi-method: Subsetting mrfi objects

Description

Subsetting mrfi objects

Usage

# S4 method for mrfi
length(x)

# S4 method for mrfi,numeric,missing [[(x, i)

# S4 method for mrfi,numeric,missing [(x, i)

Arguments

x

mrfi object.

i

vector of indexes to extract interacting positions.

Value

[[: converts to list and subsets it.

[: subsets the mrfi object and returns another mrfi object.

+: computes the union of the interaction structure in a mrfi object with a numeric representing an additional position to include or another mrfi object.