Skip to content

Instantly share code, notes, and snippets.

@amdevine
Created December 10, 2021 16:50
Show Gist options
  • Save amdevine/b0dd2147e940d27794bae36c2f8140db to your computer and use it in GitHub Desktop.
Save amdevine/b0dd2147e940d27794bae36c2f8140db to your computer and use it in GitHub Desktop.
Data Carpentry R Day 2 Notes

R: Working with tabular datasets and visualizing data

Links

Lessons

RStudio Binder (if you are having trouble installing on your computer)

https://mybinder.org/v2/gh/SmithsonianWorkshops/binders/rstudio?urlpath=rstudio

Workshop Dataset

https://figshare.com/articles/dataset/Portal_Project_Teaching_Database/1314459

R code to read surveys.csv directly from the internet

library(tidyverse)
options(dplyr.summarise.inform = FALSE)  # turn off summarize message
surveys <- read_csv('https://ndownloader.figshare.com/files/2292169')

R Notebook keyboard shortcuts

Insert a new R code chunk: Ctrl+Alt+I (Windows),        Cmd+Option+I (Mac)
Run a code chunk:          Ctrl+Shirt+Enter (Windows),  Cmd+Shift+Return (Mac)
Insert a pipe (%>%):       Ctrl+Shift+M (Windows),      Cmd+Shift+M (Mac)

RStudio Cheat Sheets

https://www.rstudio.com/resources/cheatsheets/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment