R/fct_visNetwork_helpers.R
create_label.Rd
Creates a 'label' array for a graphdf, given the columns that you want to include in the label and the seperator
create_label(graphdf, columns = c("type", "penalty"), collapse = " | ")
A graph object (in the form of a data.table) from gfpop or the "edges" from a visNetwork list.
a character vector of columns to be included in the label.
A string to seperate each item
a character vector combining those columns as specified