knitr::opts_chunk$set(
  collapse = TRUE, comment = "#>", fig.path = "man/figures/README-",
  message = FALSE, warning = FALSE, error = FALSE, tidy = TRUE
)

STAT 2XX: Introduction to R Programming

Welcome to STAT 2XX, Introduction to R Programming. This course will introduce you to R using a full stack approach that begins from the very basics of programming in R and take you through a solid overview of frontend and publishing platforms for sharing the work that your R code represents.

About this course

The information here is also included in your course syllabus under Course Goals, Learning Objectives, and General Advice.

The main goal of this course is to introduce you to the R programming language for statistical computing from the basics of using the language for simple statistical and graphing tasks to publishing and sharing your work online.

This course does not teach you probability and statistics. It provides a foundation for using programming to carry out tasks from statistics and data analysis in R in a manner that is reproducible, organized, promotes good project management and documentation skills, fosters open source code sharing and collaboration, and is standard in the R developer community.

Some context

This course aims to help make you a more self-reliant member of the scientific community while also putting you in a better position to code as part of a team. The days of the solitary scientist are over (to the extent these days ever truly existed). It is important to be able to analyze real data and to write code to carry out analyses. Much data analysis today cannot be done exclusively in a GUI by point and click. Most researchers are not afforded their own teams of graduate students and other support staff to carry out statistical programming and analysis so it is valuable to also have these skills. And only when you have some degree of self-reliance can you also work as part of a team on collaborative coding projects.

This is why you are exposed to publishing work during the entire second half of the course. It doesn't matter what you know in your research area if you can't write the code necessary to do your work, and even if you can, it still doesn't matter if you can't effectively share it for purposes of collaboration or publication. On both counts, it helps immensely to be able to code.

A bit about R

R is powerful language with expanding capabilities and whose user base continues to grow rapidly year after year. It is free, open source and with a large and supportive community made up of scientists, researchers, professors, statisticians, data analysts and many others. It is the quintessential language for statistics and data analysis and it is especially widespread in academia. R now offers over 13,000 packages related to data analysis; something that any other language including Python is unlikely to ever reproduce. Packages in R are often bleeding-edge, based directly on and accompanying newly published research in statistics and methodologies from related fields. This is uncommon for other programming languages and much statistical work does not get duplicated in other languages.

Ultimately, just as with spoken languages, it is valuable to know multiple. Each has strengths and weaknesses based on what purposes they are fundamentally designed to serve best. This course will not give you every tool you may ever need as a researcher or analyst and it is not intended to, but it is an excellent place to start or to branch into from elsewhere.

Learning objectives

Learning objectives for this course include:

General advice for succeeding in this course

Here I've included a list of suggestions that may enable you to make the most out of the course:

What you are reading right now

This website was made with R, and without having to type a single line of html, css or javascript. The knitr and rmarkdown packages do this for you. By the end of this course you will be able to do the same, but your pages will also include R code snippets and the results (tables, plots, etc.) that your code generates.

This website is also technically a component of the documentation associated with an R package I made, uafrstat. If you click on References in the navigation bar at the top of the page, you'll see documentation for functions in this package. If you click on the GitHub link (cat icon) in the top right, it will take you to the source code for this package on GitHub. By the end of the semester and as your final project, you will also be able to make your own R packages. Yours will be more interesting than this one. uafrstat doesn't do much, other than demonstrate part of the full stack R development pipeline that you will be exposed to in this course. There is a lot of exciting stuff ahead!

uafrstat

Travis-CI Build Status AppVeyor Build Status Coverage Status



leonawicz/uafrstat documentation built on May 30, 2019, 6:58 p.m.