neo4r (version 0.1.1)

vec_to_cypher: 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()`)

Value

a character vector

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.

Examples

Run this code
# NOT RUN {
vec_to_cypher(iris[1, 1:3], "Species")
vec_to_cypher_with_var(iris[1, 1:3], "Species", a)
# }

Run the code above in your browser using DataLab