Jan 9- Jan 23, 2017
Monday:6:30 pm -9:20 pm
Instructors: Tim Dennis, Reid Otsuji
Helpers: Youngsun Kwon
This is the website for the School of Global Policy and Strategy skills course in the R programming language. This course will introduce you the R programming language and how to use R to work with data from GapMinder. In order to earn a certificate of proficiency, you must attend all of the class meetings for the course, do the short coding assignments, and pass the short, in-class quiz at the end of the course. Courses begin on Monday, January 4th. This is the first day of instruction, winter quarter.
Who: The course is aimed at GPS graduate students. You don't need to have any previous knowledge of programming or the tools presented in the course to attend.
Where: Room 3202, 9500 Gilman Drive, #0519, La Jolla, CA. Get directions with OpenStreetMap or Google Maps.
Requirements: Participants must bring a laptop with a few specific software packages installed (listed below).
Contact: Please mail timdennis@ucsd.edu for more information.
Assessment: A certificate of proficiency will be given to the student who:
Need help?:
Data: We will be using the 5 year gapminder data. You can go ahead and set up a RStudio project and download the data following these instructions. The CSV can be downloaded from here.
Lecture notes & command histories:Day 1 - Jan. 9, 2017
Notes: Intro to R & RStudio, Project Management, and Seking Help, Data Structures, Commands:R Script
Day 2 - Jan. 18, 2017
Credits: The course materials are adpated from the Software Carpentry lessons. Many thanks to the authors of those lessons.
Date | Class | Topics |
---|---|---|
Jan. 9 | Lecture | Intro to R & RStudio - Project Mgmt - Data structures - Data frames |
Quiz & Assignment | Quiz 1 – Assignment 1 | |
Jan. 18 | Lecture | Plotting with GGPLOT2 |
Quiz & Assignment | Quiz 2 - Assignment 2 | |
Jan. 23 | Functions, data preparation & cleaning | Subsetting R objects - creating functions, dplyr & tidyr |
Quiz & Assignment | Quiz 3 - Assignment 3 |
Etherpad: http://pad.software-carpentry.org/2017-gps-r.
We will use this Etherpad for chatting, taking notes, and sharing URLs and bits of code.
To participate in this course, you will need access to the software described below. In addition, you will need an up-to-date web browser.
R is a programming language that is especially powerful for data exploration, visualization, and statistical analysis. To interact with R, we use RStudio.
Install R by downloading and running this .exe file from CRAN. Also, please install the RStudio IDE. Note that if you have separate user and admin accounts, you should run the installers as administrator (right-click on .exe file and select "Run as administrator" instead of double-clicking). Otherwise problems may occur later, for example when installing R packages.
Install R by downloading and running this .pkg file from CRAN. Also, please install the RStudio IDE.
You can download the binary files for your distribution
from CRAN. Or
you can use your package manager (e.g. for Debian/Ubuntu
run sudo apt-get install r-base
and for Fedora run
sudo yum install R
). Also, please install the
RStudio IDE.
SQL is a specialized programming language used with databases. We use a simple database manager called SQLite in our lessons.
The Software Carpentry Windows Installer installs SQLite for Windows. If you used the installer to configure nano, you don't need to run it again.
SQLite comes pre-installed on Mac OS X.
SQLite comes pre-installed on Linux.