Learn R Programming

cograph (version 2.0.0)

get_data: Get Original Data from Cograph Network

Description

Extracts the original estimation data stored in a cograph_network object. This is the raw input data (e.g., sequence matrix from tna, edge list data frame) preserved for reference.

Usage

get_data(x)

Value

The original data object, or NULL if not stored.

Arguments

x

A cograph_network object.

See Also

as_cograph, get_meta

Examples

Run this code
mat <- matrix(c(0, 1, 1, 1, 0, 1, 1, 1, 0), nrow = 3)
net <- as_cograph(mat)
get_data(net)  # NULL (matrices don't store raw data)

Run the code above in your browser using DataLab