Description Usage Arguments Examples
Create a new GraphFrame
1 | gf_graphframe(vertices = NULL, edges)
|
vertices |
A |
edges |
A |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | ## Not run:
library(sparklyr)
sc <- spark_connect(master = "local", version = "2.3.0")
v_tbl <- sdf_copy_to(
sc, data.frame(id = 1:3, name = LETTERS[1:3])
)
e_tbl <- sdf_copy_to(
sc, data.frame(src = c(1, 2, 2), dst = c(2, 1, 3),
action = c("love", "hate", "follow"))
)
gf_graphframe(v_tbl, e_tbl)
gf_graphframe(edges = e_tbl)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.