vec_to_cypher {neo4r} | R Documentation |
Turn a named vector into a cypher list
Description
'vec_to_cypher()' creates a list, and 'vec_to_cypher_with_var()' creates a cypher call starting with a variable.
Usage
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
vec_to_cypher(iris[1, 1:3], "Species")
vec_to_cypher_with_var(iris[1, 1:3], "Species", a)
[Package neo4r version 0.1.1 Index]