make_igraph: Make an igraph representation of the NVC

Description Usage Arguments Value Examples

View source: R/graph.R

Description

Converting the tables from NVC to graph structures opens up many possibilities for discovering novel patterns and extracting data. This uses a loop over the parent category information to create the from-to links.

Usage

1
make_igraph(df, directed = TRUE)

Arguments

df

The NVC data.frame (or subset thereof) to convert to an igraph graph

directed

Whether to return a directed graph (default = TRUE)

Value

An igraph graph

Examples

1
2
3
4
## Not run: 
make_igraph(df)

## End(Not run)

jacob-ogre/USNVC documentation built on May 18, 2019, 8 a.m.