Skip to content

Instantly share code, notes, and snippets.

View abrahamdu's full-sized avatar

Yi Du abrahamdu

View GitHub Profile
@eddjberry
eddjberry / sparklyr_cv_pipeline_example.R
Last active August 22, 2019 21:24
An example of creating a Spark pipeline with sparklyr
# Load packages
library(dplyr)
library(sparklyr)
# Set up connect
sc <- spark_connect(master = "local")
# Create a Spark DataFrame of mtcars
mtcars_sdf <- copy_to(sc, mtcars)