vec_to_cypher: Turn a named vector into a cypher list

Description Usage Arguments Details Value Examples

Description

'vec_to_cypher()' creates a list, and 'vec_to_cypher_with_var()' creates a cypher call starting with a variable.

Usage

1
2
3
vec_to_cypher(vec, label)

vec_to_cypher_with_var(vec, label, variable)

Arguments

vec

the vector

label

the label of each vector

variable

the variable to use (for 'vec_to_cypher()')

Details

This function can be used with small vectors you want to send to the server. It can for example be used this way : “' paste("MERGE", vec_to_cypher(iris[1, 1:3], "Species")) “' to create a cypher call.

Value

a character vector

Examples

1
2
vec_to_cypher(iris[1, 1:3], "Species")
vec_to_cypher_with_var(iris[1, 1:3], "Species", a)

neo4j-rstats/neo4r documentation built on June 5, 2019, 4:36 p.m.