Description Usage Arguments Value Examples
View source: R/spark_collect_data.R
Given the name of a Spark DataFrame or a reference to a Spark DataFrame,
collect it into R from a spark_connection
.
1 | spark_collect_data(x, sc = NULL)
|
x |
One of:
|
sc |
A |
A tibble
.
1 2 3 4 5 6 7 8 9 10 11 | ## Not run:
sc <- sparklyr::spark_connect(master = "local")
mtcars_spark <- dplyr::copy_to(sc, mtcars)
# We can collect the data using the R objet
spark_collect_data(mtcars_spark)
# Or by referencing the name within the spark connection
spark_collect_data(x = "mtcars", sc = sc)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.