/physalia-gtmoR-course

Primary LanguageHTMLCreative Commons Attribution 4.0 InternationalCC-BY-4.0

Getting the most out of R

Physalia-Courses

https://www.physalia-courses.org/

Instructor:

Luis D. Verde Arregoitia (https://liomys.mx)

7–10th February, 2022

Overview

Many scientists start using R for very specific purposes with little training in computer science, data organization, and software development. Even advanced users may bypass important tools and abstractions which can ultimately lead to bad habits and wasting time. Get the most of R by exploring topics that usually fall outside of data analysis and visualization curricula.

This course will cover blind spots in existing materials by working through the intermediate steps in various pairs of problems and solutions that often get overlooked because of assumed knowledge.

Target audience

R users in scientific fields with a moderate amount of R and RStudio experience, for the most part self-taught, overwhelmed by the amount of resources, and interested in becoming more efficient.

Program and materials

All slides are available as downloadable html slide decks (go to each link, right-click on the Download button and save link). Rmd files for creating the slides with xaringan are also available in this repository. These course materials are released under a CC-BY-4.0 License.

Day 1 - Introduction

💽 slides

  • Syntax quirks and idiosyncrasies

  • Milestones and changes in R through time

  • R ‘dialects’

  • The file system

  • Directory structures, file paths and names

  • Project and workflow organization

  • Projects, 📦 {here} and relative paths

Day 2 - Usable data

💽 slides

  • Organizing data in spreadsheets

  • Principles of rectangular data

  • Tools for data rectangling (tidyverse-oriented)

  • Data types and missing values

Day 3 - Increasing efficiency

💽 slides

  • Iteration, writing loops and using 📦 {purrr}

    • Apply functions to many things at once

    • Reading many files at once

    • Modifying and exporting multiple objects

  • Regular expressions for working with text strings

Day 4 - Overcoming errors and getting unstuck

💽 slides

  • Useful addins and helpers

  • Friendly online resources

  • Building web searches to solve common problems

  • Identifying the best solutions

  • Creating reproducible examples with the 📦 {reprex} package

Not part of this course

  • Making plots & maps
  • Making nice-looking tables
  • Statistical analyses
  • Package development
  • RMarkdown

Contact me if you are interested in hosting a similar version of this course for your team or institution.