create_label: Creates a 'label' array for a graphdf, given the columns that...

View source: R/fct_visNetwork_helpers.R

create_labelR Documentation

Creates a 'label' array for a graphdf, given the columns that you want to include in the label and the seperator

Description

Creates a 'label' array for a graphdf, given the columns that you want to include in the label and the seperator

Usage

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


julianstanley/gfpopgui documentation built on April 16, 2022, 2:58 a.m.