# Fall 2022 - STAT 260 D100

## Overview

• #### Course Times + Location:

Tu 2:30 PM – 4:20 PM
SSCB 9200, Burnaby

• #### Exam Times + Location:

Dec 11, 2022
7:00 PM – 10:00 PM
SWH 10081, Burnaby

• #### Prerequisites:

One of STAT 201, STAT 203, STAT 205, STAT 270, BUS 232, ECON 233, or POL 201, with a grade of at least C- or permission of the instructor. Corequisite: STAT 261.

## Description

#### CALENDAR DESCRIPTION:

An introduction to the R programming language for data science. Exploring data: visualization, transformation and summaries. Data wrangling: reading, tidying, and data types. No prior computer programming experience required. Students who have taken STAT 341 or STAT 360 first may not then take this course for further credit.

#### COURSE DETAILS:

STAT 261 Labs will start on Tuesday Sept 13 and will run until Thursday Dec 1. There will not be any Labs on Wednesday Sept 7, Thursday Sept 8, nor Tuesday Dec 6.

 Week Number STAT 260 STAT 261 1 Getting started: installing R, RStudio, the tidyverse and other packages, RStudio projects, RMarkdown files and basics In-class exercises for setting up R 2 and 3 Exploring Data: visualisation Using ggplot to create plots of different types of data 4 Exploring Data: transformation and summary statistics Plotting transformed data (e.g., bar plots, smoothed functions) 5 Data Wrangling: data frames and tibbles, importing data Reading in data in different formats 6 Data Wrangling: tidy data Cleaning a messy data set 7 Data Wrangling: relational data Linking multiple data sets 8 Data Wrangling: strings Handling text data 9 Data Wrangling: factors, dates and times Handling factors and date and time data 10 Programming: functions Writing functions to minimize code length, prevent bugs, and improve readability 11 Programming: vectors Types of vectors and incorporating vectors in functions 12 Programming: vectors For loops 13 Summary Summary

• Quizzes 20%
• Midterm 30%
• Final Exam 50%

#### NOTES:

Above grading is subject to change.

## Materials

#### MATERIALS + SUPPLIES:

Your personalized Course Material list, including digital and physical textbooks, are available through the SFU Bookstore website by simply entering your Computing ID at: shop.sfu.ca/course-materials/my-personalized-course-materials.

Students with Disabilities:
Students requiring accommodations as a result of disability must contact the Centre for Accessible Learning 778-782-3112 or caladmin@sfu.ca.

Tutor Requests:
Students looking for a tutor should visit https://www.sfu.ca/stat-actsci/all-students/other-resources/tutoring.html. We accept no responsibility for the consequences of any actions taken related to tutors.