Skip to contents

Transform edge weights in a netify object

Usage

transform_weights(
  netlet,
  transform_fn = NULL,
  add_constant = 0,
  new_name = NULL,
  keep_original = TRUE
)

Arguments

netlet

A netify object

transform_fn

A function to apply to the weights (e.g., log, sqrt)

add_constant

Numeric value to add before transformation (useful for log)

new_name

Optional new name for the weight variable

keep_original

Logical, whether to keep the original weight as a dyadic variable

Value

A netify object with transformed weights

Author

Cassy Dorff, Shahryar Minhas