graph_to_R_code: Takes in a graph dataframe, returns the graph formatted as R...

View source: R/fct_graph_helpers.R

graph_to_R_codeR Documentation

Takes in a graph dataframe, returns the graph formatted as R code

Description

Takes in a graph dataframe, returns the graph formatted as R code

Usage

graph_to_R_code(graph)

Arguments

graph

A graph df, like that returned by gfpop::graph()

Value

a string corresponding to the code that, when run, produces the given graph

Examples

graph <- gfpop::graph(type = "std")
graph_to_R_code(graph)

julianstanley/gfpopgui documentation built on April 16, 2022, 2:58 a.m.