RNeo4j (version 1.6.4)

dropLabel: Node Labels

Description

Drop the specified label(s) from a node.

Usage

dropLabel(node, ..., all = FALSE)

Arguments

node
A node object.
...
A character vector.
all
A logical constant. If TRUE, drop all labels from the node.

See Also

addLabel, getLabel

Examples

Run this code
## Not run: 
# graph = startGraph("http://localhost:7474/db/data/")
# clear(graph)
# 
# alice = createNode(graph, "Person", name = "Alice")
# bob = createNode(graph, c("Person", "Student"), name = "Bob")
# 
# dropLabel(alice, "Person")
# dropLabel(bob, all = TRUE)
# 
# alice
# bob
# ## End(Not run)

Run the code above in your browser using DataCamp Workspace