edge_to_df: Read and Convert to Dataframe

Description Usage Arguments Value

Description

Reads a file in as an excel or a csv and creates an edgelist

Usage

1
2
edge_to_df(edge_file, sheet = 1, parent_col = 1, child_col = 2,
  fill = TRUE, column_header = TRUE)

Arguments

edge_file

The path to an excel or csv edgefile that contains at minimum two columns, a parent and a child.

sheet

If an excel document, the sheet that contains the edges

parent_col

The column that contains the parent element names

child_col

The column that contains the child element names

fill

Do parent columns need to be filed?

column_header

do column headers exist? _________________________# | parent_1 | child_1 | | | child_2 | | | child_3 | | parent_2 | child_1 | | | child_2 |

Value

A tibble that con be converted to a dataframe and saved as an Rdata file


bradwest-wk/xbrlr documentation built on May 8, 2019, 11:43 a.m.