d3_table {d3r}R 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"))


[Package d3r version 1.1.0 Index]