d3_table: Converts Table to 'd3' Nodes and Links

View source: R/table.R

d3_tableR Documentation

Converts Table to 'd3' Nodes and Links

Description

Converts Table to 'd3' Nodes and Links

Usage

d3_table(tB = NULL, vars = NULL, agg = "Freq")

Arguments

tB

table to convert

vars

character vector of column names

agg

character column name of aggregated value

Value

list of two data.frames - one for nodes and one for links of the network. This structure is helpful when working with networkD3 and visNetwork.

Examples

library(d3r)
d3_table(Titanic, c("Class","Sex"))


d3r documentation built on Oct. 2, 2023, 5:08 p.m.