Giter Site home page Giter Site logo

kevinwkc / sparkr-tutorials Goto Github PK

View Code? Open in Web Editor NEW

This project forked from urbaninstitute/sparkr-tutorials

0.0 1.0 0.0 951 KB

Code snippets and tutorials for working with SparkR.

Home Page: https://urbaninstitute.github.io/spark-social-science-manual/

License: Other

R 100.00%

sparkr-tutorials's Introduction

sparkr-tutorials

Description: Code snippets and tutorials for working with SparkR.

Spark Social Science Manual

The tutorials included in this repository are geared towards social scientists and policy researchers that want to undertake research using "big data" sets. A manual to accompany these tutorials is linked below. The objective of the manual is to provide social scientists with a brief overview of the distributed computing solution developed by The Urban Institute's Research Programming Team, and of the changes in how researchers manage and analyze data required by this computing environment.

Spark Social Science Manual

Getting Started with SparkR Tutorials

Last Updated: October 3, 2016 (Updated to include Spark Social Science Manual)

In order to begin working with SparkR, users must first:

  1. Make sure that SPARK_HOME is set in environment (using Sys.getenv)
  2. Load the SparkR library
  3. Initiate a sparkR.session
if (nchar(Sys.getenv("SPARK_HOME")) < 1) {
  Sys.setenv(SPARK_HOME = "/home/spark")
}

# Load the SparkR library
library(SparkR)

# Initiate a SparkR session
sparkR.session()

โ— The expressions given above must be evaluated in SparkR before beginning any of the tutorials hosted here. Example data loading is included in each tutorial.

Users can end a SparkR session with the following expression:

sparkR.session.stop()

Note: the data visualization tutorial, linked to below, is currently not updated for SparkR 2.0, but does still function with SparkR 1.6.

Table of Contents:

Created by gh-md-toc

sparkr-tutorials's People

Contributors

alexcengler avatar saraharmstrong avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.