Nested categories are represented in a graph structure, and thus we need convenient tools for creation and manipulation of the graphs that will represent the nested categories. One strong possibility is the tidygraph package by Thomas Lin Pedersen, which builds on top of igraph and tidyverse approaches.

knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>"
)
library(tidyverse)
library(tidygraph)
library(nestedcats)

gr <- tribble(
  ~from, ~to,

)


jameelalsalam/nestedcats documentation built on June 2, 2020, 8:16 p.m.