Learn R Programming

tma (version 0.3.1)

$.network.matrix: Extract Metadata or Columns from Network Matrix (S3 method)

Description

This S3 method allows convenient extraction of metadata columns from a network matrix object using the $ operator. If the requested column is metadata, it is returned from the model's meta.data; otherwise, the standard extraction is performed.

Usage

# S3 method for network.matrix
$(x, i)

Value

The requested column or metadata field from the network matrix.

Arguments

x

An object of class "network.matrix".

i

Name of the column or metadata field to extract.