Learn R Programming

crosstalkr (version 1.0.4)

add_value: 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")

Value

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

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