deleteProp: Delete Node and Relationship Properties

Description Usage Arguments Value See Also Examples

View source: R/deleteProp.R

Description

For a node or relationship object, delete the named properties or delete all properties.

Usage

1
deleteProp(entity, ..., all = FALSE)

Arguments

entity

A node or relationship object.

...

A character vector. The properties to delete.

all

A logical constant. If TRUE, delete all properties.

Value

A node or relationship object.

See Also

updateProp

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
## Not run: 
graph = startGraph("http://localhost:7474/db/data/")
clear(graph)

alice = createNode(graph, "Person", name = "Alice", age = 23, status = "Married")
bob = createNode(graph, "Person", name = "Bob", age = 22, status = "Married")
charles = createNode(graph, "Person", name = "Charles", age = 25, status = "Unmarried")

alice = deleteProp(alice, "age")
bob = deleteProp(bob, c("name", "age"))
charles = deleteProp(charles, all = TRUE)

alice
bob
charles

## End(Not run)

RNeo4j documentation built on May 29, 2017, 4:01 p.m.

Related to deleteProp in RNeo4j...