to_data.frame: Converts 'popgraph' to 'data.frame' based upon node...

View source: R/to_data.frame.R

to_data.frameR Documentation

Converts popgraph to data.frame based upon node attributes

Description

This is a quick conversion of vertex attributes to a data.frame, essentially the reverse operation as decorate_graph function.

Usage

to_data.frame(x, mode = c("nodes", "edges")[1], as.named = TRUE, ...)

Arguments

x

The popgraph to grab stuff from.

mode

An indication of what to return, a data.frame of node (the default) or edge properties.

as.named

A flag (default TRUE) indicating whether the nodes are returned as indices or names.

...

Ignored (generally).

Value

An object of type data.frame with all the node attributes.

Author(s)

Rodney J. Dyer rjdyer@vcu.edu


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