Giter Club home page Giter Club logo

intro2r's Introduction

output
pdf_document html_document
default
default

SIOB 296: Introduction to Programming with R

Dates: January 6 - March 9, 2020
Time: Monday 1pm - 4pm
Location: Eckart Building, first floor, Sea Cave
Grading: Four Units, S/U Only

Eric Archer [email protected] 858-546-7121
https://github.com/EricArcher/Intro2R

Course Description

This course will focus on establishing a solid fundamental understanding of data manipulation and analysis with R. No prior programming experience is necessary, and students from all backgrounds are welcome. We will start with an introduction to the R command line, followed by a detailed description of R data structures and how to manipulate them. The course will continue by covering commonly used R functions and students will then learn how to write their own functions and scripts. We will also cover visualization in R using base R graphics and the ggplot2 package and common statistical analyses. For the final project, students will write an R script and functions to analyse their own data.

Software

Students should come on the first day with the latest versions of R and RStudio loaded on their laptops. They can be obtained at:

R: https://www.r-project.org
RStudio: https://www.rstudio.com

Syllabus

Week Date Topic
01 Jan 06 R console, RStudio, scripts, data structures, vectors, indexing, logical operations
02 Jan 13 indexing review, vectorization, factors, matrices and arrays, lists, data frames
03 Jan 20 << Martin Luther King Jr. Day >>
04 Jan 27 reading and writing data, common functions for data summary and selection
05 Feb 03 character and string manipulation, date/time objects
06 Feb 10 function writing, flow control, iterating and apply family of functions
07 Feb 17 << President's Day >>
08 Feb 24 graphics (base and ggplot2)
09 Mar 02 statistics, model fitting, simulation
10 Mar 09 file and folder management, the tidyverse package (magrittr, dplyr, tidyr)

Syllabus, class notes, and homework available at: https://github.com/EricArcher/Intro2R

Project

Students who have officially enrolled in the class will be required to submit a script utilizing a function that they have written. The function should serve some useful purpose for your work by doing some sort of data manipulation, analysis, or visualization using techniques learned in the class. Try to keep the function less than 100 lines long and comment it well. The function should be accompanied by another script that gives an example of its execution. If running the function requires a special data set, send it either as a .csv file or as an R object. If you can't get the function to work, please send what you have at that point along with comments of what is working and what is not working. You will get full credit for the attempt and documentation.

All files that are part of the project should be sent to me compressed in a .zip file named, "Lastname_F_SIO296.zip", where "F" is the first initial (e.g., "Archer_E_SIO296.zip") by the end of the day on Friday, March 22. The function should be in its own .r script file. The script that executes an example of it should be in another script file. Please be sure that the zip file is self-contained, meaning that it contains all necessary data files in its own folder and I will be able to execute it. It should also not manipulate files or folders in folders other than its own. Finally, please limit the number of external packages it requires and load them at the beginning so I can make sure I have everything necessary installed on my machine.

Suggested Texts

  • Davies, T. 2016. The Book of R: A First Course in Programming and Statistics. No Starch Press. 832pp ISBN 978-1593276515
  • Matloff, N. 2011. The Art of R Programming: A Tour of Statistical Software Design. No Starch Press. 400pp ISBN 978-1593273842
  • Wickham, H. and Grolemund, G. 2017. R for Data Science. O'Reilly Media. 522pp ISBN 978-1491910399

Other Resources

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.