Allows to update old visNetwork edges from a new gfpop graphdf, while only updating certain columns

update_visNetwork_edges(
  old_edges,
  graphdf,
  edgeSep = "_",
  showNull = TRUE,
  label_columns = c("type", "penalty"),
  label_collapse = " | ",
  columns_to_exclude = c("id", "to", "from")
)

Arguments

old_edges

A dataframe in visNetwork edges format

graphdf

A graph object (in the form of a dataframe) from gfpop

edgeSep

A character seperating the nodes in an edge label

showNull

(Boolean) hide null edges?

label_columns

(character) An array of columns to use to make edge labels

label_collapse

the character separating edge columns in this label

columns_to_exclude

(character) An array of columns not to include in the update