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 = " | ")

Arguments

graphdf

A graph object (in the form of a data.table) from gfpop or the "edges" from a visNetwork list.

columns

a character vector of columns to be included in the label.

collapse

A string to seperate each item

Value

a character vector combining those columns as specified