Assemble a header for loading edge data into neo4j

neo4j_header_relations(
  data,
  relation_type_field,
  relation_src_field,
  relation_dst_field,
  ignore_fields = NULL,
  array_fields
)

Arguments

data

a data frame to be exported

relation_type_field

field name with values describing the relationship type

relation_src_field

field name with id values for the node where the relation starts

relation_dst_field

field name with id values for the node where the relation ends

ignore_fields

logical to indicate which fields should be ignored (if any), Default: NULL

array_fields

a vector of field names for fields that contain arrays

Value

a string with header info that can be used by neo4j imports

Examples

if (FALSE) {
if(interactive()){
 neo4j_header_edges(data)
 }
}