Description Usage Arguments Value Examples
Generates the SQL to add a node to the database
1 |
data |
Data to be added to the node in a list format |
identifier |
The identifier for the node |
A SQL statement to add a node to a database
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | ## Not run:
library(simplegraphdb)
apple <- "apple_test.sqlite"
initialize(apple)
# Add nodes with data
atomic(apple, add_node(list(
"name" = "Apple Computer Company",
"type" = c("company", "start-up"),
"founded" = "April 1, 1976"), 1))
atomic(apple, add_node(list(
"name" = "Steve Wozniak",
"type" = c("person", "engineer", "founder")), 2))
atomic(apple, add_node(list(
"name" = "Steve Jobs",
"type" = c("person", "designer", "founder")), 3))
atomic(apple, add_node(list(
"name" = "Ronald Wayne",
"type" = c("person", "administrator", "founder")), 4))
atomic(apple, add_node(list(
"name" = "Mike Markkula",
"type" = c("person", "investor")), 5))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.