networkformat: Convert R Objects to Network Edgelists and Nodelists

Network analysis and plotting packages such as 'igraph', 'tidygraph', and 'ggraph' expect the edges and nodes of a graph as flat tables. Methods are provided to build those tables from data frames (column-pair edges chosen with 'tidyselect' semantics), tree-based model objects ('randomForest', 'tree', 'rpart', 'xgboost', 'gbm'), lists (recursive parent-child edges), and atomic vectors (sequential edges). Graphs can also be constructed in one step via as.igraph() and as_tbl_graph() methods for tree models.

Version: 0.1.2
Depends: R (≥ 3.6.0)
Imports: rlang, tidyselect
Suggests: randomForest, tree, xgboost, gbm, rpart, testthat (≥ 3.0.0), covr, igraph, tidygraph, ggraph, knitr, rmarkdown
Published: 2026-10-16
DOI: 10.32614/CRAN.package.networkformat (may not be active yet)
Author: Jesse Brandt ORCID iD [aut, cre]
Maintainer: Jesse Brandt <jesse.a.brandt at gmail.com>
BugReports: https://github.com/jessebrandtdata/networkformat/issues
License: MIT + file LICENSE
URL: https://jessebrandtdata.github.io/networkformat/, https://github.com/jessebrandtdata/networkformat
NeedsCompilation: no
Citation: networkformat citation info
Materials: README, NEWS
CRAN checks: networkformat results

Documentation:

Reference manual: networkformat.html , networkformat.pdf
Vignettes: Working with edgelists and nodelists (source, R code)
networkformat (source, R code)
Visualizing models as networks (source, R code)

Downloads:

Package source: networkformat_0.1.2.tar.gz
Windows binaries: r-devel: not available, r-release: not available, r-oldrel: not available
macOS binaries: r-release (arm64): not available, r-oldrel (arm64): not available, r-release (x86_64): not available, r-oldrel (x86_64): not available

Linking:

Please use the canonical form https://CRAN.R-project.org/package=networkformat to link to this page.