WeightEdgesIf: Weight the Edges Between Nodes

Description Usage Arguments Value

Description

Set the edge weights between nodes in a graph that is represented like a CartesianSquare data frame or tibble.

Usage

1
WeightEdgesIf(x, edges, weights, name = rlang::missing_arg())

Arguments

x

A data frame or tibble.

edges

An unquoted expression that, within x, evaluates to a logical vector.

weights

An unquoted expression that, within x, evaluates to a numeric vector–the values of the name variable when edges evaluates to TRUE.

name

An unquoted name of the output variable where the weights are populated.

Value

A tibble that is like x except that it has a variable name whose values are determined by edges and weights.


patrickreidy/phoneigen documentation built on May 20, 2019, 10:22 p.m.