add_value: Attach a generic user-provided value to graph

View source: R/utils.R

add_valueR Documentation

Attach a generic user-provided value to graph

Description

Attach a generic user-provided value to graph

Usage

add_value(val, g, val_name = "value")

Arguments

val

named numeric vector where the names correspond to vertices in g

g

igraph object - will be filtered so that only nodes found in both exp and g are kept

val_name

str key for val

Value

subgraph of g containing only shared keys with val and val attached


DavisWeaver/crosstalkr documentation built on May 6, 2024, 6:09 p.m.