Assemble a header for loading node data into neo4j

neo4j_header_nodes(
  data,
  id_field,
  array_fields,
  ignore_fields = NULL,
  id_namespace = NULL,
  label_field
)

Arguments

data

a data frame to be exported

id_field

the name of the primary key field

array_fields

a vector of field names for fields that contain arrays

ignore_fields

a vector of field names to exclude, Default: NULL

id_namespace

an identifier namespace in neo4j parlance, Default: NULL

label_field

the name of the field containing labels

Value

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

Examples

if (FALSE) {
if(interactive()){
 neo4j_header_nodes(kth_diva_pubs(), id_field = "PID", label_field = "Title")
 }
}