add_nodes: Add nodes to neo4j from a dataframe

Description Usage Arguments Examples

View source: R/rneo4_functions.R

Description

This function adds nodes row-wise to a neo4j graph (called "graph"). Requires RNeo4j.

Usage

1
add_nodes(df, label, id, props = NULL, verbose = FALSE, na.act = F)

Arguments

df:

dataframe which will be traversed to row-wise to add nodes.

label:

The label to assign to each node (takes a character value)

id:

column name in dataframe required for a node to be created (takes a character value)

props:

column names(s) in dataframe of node properties (takes a character vector); defaults to NULL

verbose:

if TRUE, returns information about each node being added to the graph DB; defaults to False

na.act:

not currently used...maybe in the future; defaults to False

Examples

1
add_nodes(awarded_contracts, "contract", "DUNSNumber", props = names(awarded_contracts), verbose = T)

zbeaver4/beavR documentation built on May 4, 2019, 9:12 p.m.