Data Intro

R and Python

Below are instructions to get started with R and/or Python.  If you do not have the language installed, you can do so by following the links below and then installing the version for your operating system.  If you are not sure if you have them installed or not, you can open up the Terminal (for Mac or Linux) or Command Prompt (for Windows).  For R, run: R –version.  For Python, run: python –version.

R:

Install R: http://cran.us.r-project.org/bin

Install RStudio: https://www.rstudio.com/products/rstudio/download/

Python:

Install Python (choose most recent, probably 3.7.0 or something): https://www.python.org/downloads/

Install Atom (or text editor of your choice): https://atom.io

Homebrew (for Mac):

https://brew.sh

Jupyter Notebooks:

Install Pip (pip.pypa.io/en/stable/installing)

Install Jupyter:

  • in terminal, run “pip3 install jupyter”

Data Source:

https://github.com/cccdenhart/nues_data_intro_2


Configuring Atom:

This guide provides a good tutorial on installing Hydrogen and Jupyter Kernels for Atom:

https://jstaf.github.io/2018/03/25/atom-ide.html

Jupyter kernels allow in-line running and Hydrogen allows for compatibility with Atom.  I had trouble getting kernels working in Atom for R, so I would recommend just starting with Python.


SQL

There are many dialects of SQL.   The links below will help you get started with PostgreSQL.  SQL is a little more of a pain to get set up as you have to do a little bit of system admin work.  The following guides should hopefully make it easy on Mac, though.

Install Homebrew: https://brew.sh

Install Postgres: http://exponential.io/blog/2015/02/21/install-postgresql-on-mac-os-x-via-brew/


10/29/18 Tutorial Source Code: https://github.com/cccdenhart/nues_data_intro