Skip to content

Instantly share code, notes, and snippets.

View lautiamkok's full-sized avatar
🏠
Working from home

LAU TIAM KOK lautiamkok

🏠
Working from home
View GitHub Profile
@RobertAKARobin
RobertAKARobin / python.md
Last active March 30, 2024 18:01
Python Is Not A Great Programming Language
# Set the system environment variables
Sys.setenv(SPARK_HOME = "C:/Apache/spark-1.4.1")
.libPaths(c(file.path(Sys.getenv("SPARK_HOME"), "R", "lib"), .libPaths()))
#load the Sparkr library
library(SparkR)
# Create a spark context and a SQL context
sc <- sparkR.init(master = "local")
sqlContext <- sparkRSQL.init(sc)