nodify_cols: nodify_cols

Description Usage Arguments Details

Description

A shortcut to run nodify_col on multiple columns. The only difference is to enter the column names as a character vector.

Usage

1
nodify_cols(df, col, label = "df_col_name", property_key = "Name", sep = ";")

Arguments

df

The data.frame containing the column of data.

col

The names of the data columns, as a list or vector, eg. col = c("Organization", "City", "Postal_Code")

label

The label to assign to these nodes. The default is to take this label from the name of the column. As a string.

property_key

The name for the property key for these values. Eg. "Name" for nodes labeled "Person". The default is "Name". As a string.

sep

The separator between items in a cell of the column, eg "," or ";"

Details

Assuming all defaults, with lots of simple, unique-name-only columns representing nodes that have the node label as column name, and will have unique prop called Name (or whatever you set for all of them)

ie. in Cypher: (:Label) and Label.Name


brendan-newlon/df2neo4j documentation built on Sept. 19, 2020, 5:44 a.m.