STAT 545B Course syllabus: 2020/2021

How to make a clean and modern data analysis, Part II.


Duration: 2020-10-26 - 2020-12-04

  • Advanced computation on data: manipulating strings, and functional programming with purrr
  • Orchestrate an analysis at a high level by writing functions and automating scripts.
  • Distribute data and code via an R package.
  • Interactive pages, apps, and graphics with Shiny.

Teaching Team

Instructor: Dr. Vincenzo Coia

Teaching Assistants:

  • Almas Khan
  • Icíar Fernández Boyano
  • Diana Lin
  • Victor Yuan


Tuesdays and Thursdays 0930-1100 PST

There will always be two TA’s in class to help students with the live coding exercises.

Lesson Weekday Date Topic
1 Tue Oct 27 Functions Part I
2 Thu Oct 29 Functions Part II
3 Tue Nov 3 List columns Part I
4 Thu Nov 5 List columns Part II
5 Tue Nov 10 List columns Part III
6 Thu Nov 12 R packages Part I
7 Tue Nov 17 R packages Part II
8 Thu Nov 19 Dashboards Part I
9 Tue Nov 24 Dashboards Part II
10 Thu Nov 26 Automation Part I
11 Tue Dec 1 Automation Part II
12 Thu Dec 3 Character Data


Deliverable Percent Grade Description
Class worksheets (3) 10 Autograded walkthroughs to guide student learning in class.
Participation quizzes (11) 5 Two questions per class for critical thinking. Submit on canvas within 24h. Graded for participation, not correctness.
Assignments (5) 85 Adding to a data analysis, making a small R package, making a Shiny dashboard

More details can be found on the course dashboard.

Auditing Students

Auditing students are expected to complete all deliverables. The difference between enrolling for credit is that auditing students are graded on each assignment on a pass/fail basis.



STAT 545 uses Slack for informal communications. Note that the messages sent on Slack are stored on a US server.

STAT 545 asks students to work on Please produce work knowing that the material you put on GitHub will be stored on US servers.


In addition to UBC’s Campus-wide Policies and Regulations, STAT 545A and STAT 545B adopt the following policies.


The teaching team can’t guarantee that they will be able to respond to student messages outside of typical workday hours (0900-1700 PST). So, please be mindful of a 17:00 PST cutoff on Fridays when asking assignment-related questions.

Please read this before messaging the teaching team.

Late Policy

A late submission is defined as any work, including quizzes, submitted after the deadline. For a late submission, the student will receive a 50% scaling of their grade for the first occurrence, and will receive a grade of 0 for subsequent occurrences. In all cases, late submissions past 24 hours will receive a zero.

Academic Concession

UBC no longer requires a doctor’s note (or supporting documentation) for academic concession. A self-declaration will suffice – here is a template you can use. Please submit this to the instructor.

For this course, a “conflicting responsibility” includes needing to travel for a conference or field work.

If you arrange to have an assignment submitted late, you may not be able to receive feedback from your peers.


Plagiarism, which is intellectual theft, occurs where an individual submits or presents the oral or written work of another person as his or her own and can include:

  • multiple students submitting the same response
  • copying from sources without citing them
  • copying verbatim (word-for-word) from source and citing, but failing to make it explicit that this is a quotation (quotations should be used only rarely, if at all)

Plagiarism will not be tolerated in the MDS program and may result in dismissal from the program. Students are responsible for ensuring that any work submitted does not constitute plagiarism. Students who are in any doubt as to what constitutes plagiarism should consult their Instructor before handing in any assignments.

For more information see the UBC Academic Misconduct policies.

Code Plagiarism

Students must correctly cite any code that has been authored by someone else or by the student themselves for other assignments. Cases of code plagiarism may include, but are not limited to:

  • the reproduction (copying and pasting) of code with none or minimal reformatting (e.g., changing the name of the variables)
  • the translation of an algorithm or a script from a language to another
  • the generation of code by automatic code-generations software

An “adequate acknowledgement” requires a detailed identification of the (parts of the) code reused and a full citation of the original source code that has been reused.

Video Conferencing with Zoom

Students are encouraged to turn their cameras on whenever they are using Zoom. However, we understand that this can be an issue for some people. As such, you will never be expected to turn your camera on.

UBC’s Policies and Resources to Support Student Success

UBC provides resources to support student learning and to maintain healthy lifestyles but recognizes that sometimes crises arise and so there are additional resources to access including those for survivors of sexual violence. UBC values respect for the person and ideas of all members of the academic community. Harassment and discrimination are not tolerated nor is suppression of academic freedom. UBC provides appropriate accommodation for students with disabilities and for religious, spiritual and cultural observances. UBC values academic honesty and students ae expected to acknowledge the ideas generated by others and to uphold the highest academic standards in all of their actions. Details of the policies and how to access support are available here.

Potential restrictions to international students’ online learning experiences as a result of remote learning

During this pandemic, the shift to online learning has greatly altered teaching and studying at UBC, including changes to health and safety considerations. Keep in mind that some UBC courses might cover topics that are censored or considered illegal by non-Canadian governments. This may include, but is not limited to, human rights, representative government, defamation, obscenity, gender or sexuality, and historical or current geopolitical controversies. If you are a student living abroad, you will be subject to the laws of your local jurisdiction, and your local authorities might limit your access to course material or take punitive action against you. UBC is strongly committed to academic freedom, but has no control over foreign authorities (please visit,33,86,0 for an articulation of the values of the University conveyed in the Senate Statement on Academic Freedom). Thus, we recognize that students will have legitimate reason to exercise caution in studying certain subjects. If you have concerns regarding your personal situation, consider postponing taking a course with manifest risks, until you are back on campus or reach out to your academic advisor to find substitute courses. For further information and support, please visit: