to_df: Converts popgraph into Data.Frame

View source: R/to_df.R

to_dfR Documentation

Converts popgraph into Data.Frame

Description

Quick function to convert a population graph into a data.frame object for either the node or edge set with all attributes.

Usage

to_df(graph, mode = c("nodes", "edges")[1])

Arguments

graph

An population graph

mode

Either "nodes" or "edges" to be used.

Value

An object of type data.frame

Author(s)

Rodney J. Dyer <rjdyer@vcu.edu>


dyerlab/popgraph documentation built on July 22, 2022, 5:42 p.m.