Learn R Programming

grPipe (version 0.1.0)

grPipe.create: Create New Graphviz Data.Frame (grPipe Nodes)

Description

if nrow or ncol parameters are equal zero, then the output will be an empty data.frame.

Usage

grPipe.create(nrow = 0, ncol = 0)

Arguments

nrow

integer

ncol

integer

Value

Returns a data.frame with 3 columns (id, id_next and text) where:

  • if nrow==0 or ncol==0, then return an empty data.frame;

  • if nrow>0 and ncol>0, then return a data.frame with one row:

    • id = paste0(LETTERS[nrow], ncol)

    • id_next = NA

    • text = NA

Examples

Run this code
# NOT RUN {
nodes = grPipe.create()
nodes = grPipe.create(nrow = 2, ncol = 5)

# }

Run the code above in your browser using DataLab