• CSDE 502
  • Introduction
    • Course logistics
      • Class meetings
      • Canvas
      • Computing
      • Assignments
  • 1 Week 1
    • 1.1 Getting started on Terminal Server 4
    • 1.2 Introduction to R Markdown in RStudio
      • 1.2.1 Create a project
      • 1.2.2 Create an R Markdown file from built-in RStudio functionality
        • 1.2.2.1 Render the Rmd file as HTML
      • 1.2.3 Create an R Markdown file with some enhancements
        • 1.2.3.1 Render and view the enhanced output
    • 1.3 File systems
  • 2 Week 2
    • 2.1 Code to run for the in-class exercise
    • 2.2 R data types
      • 2.2.1 Logical
      • 2.2.2 Numeric
      • 2.2.3 Integer
      • 2.2.4 Complex
      • 2.2.5 Character
      • 2.2.6 Raw
    • 2.3 R data structures
      • 2.3.1 Vector
      • 2.3.2 Matrix
      • 2.3.3 Array
      • 2.3.4 List
      • 2.3.5 Factor
      • 2.3.6 Data frame
    • 2.4 tidyverse
      • 2.4.1 magrittr
      • 2.4.2 Data subsetting (dplyr)
        • 2.4.2.0.1 Logical tests
        • 2.4.2.1 Subset rows (filter())
        • 2.4.2.2 Subset columns (select())
        • 2.4.2.3 Subset rows and columns: filter() and select()
        • 2.4.2.4 Create or calculate columns: mutate()
        • 2.4.2.5 Summarizing/aggregating data
  • 3 Week 3
    • 3.1 Graphics in R Markdown
      • 3.1.1 Base R graphics
      • 3.1.2 ggplot2 graphics
      • 3.1.3 Embedding graphics files
        • 3.1.3.1 knitr
        • 3.1.3.2 Markdown: ![caption](filename)
        • 3.1.3.3 HTML <img> tag
    • 3.2 Tables in R Markdown
      • 3.2.1 kntir (kable()) and kableExtra
      • 3.2.2 stargazer
      • 3.2.3 pander
    • 3.3 Captions to support tables, figures, and equations
      • 3.3.1 Figures
        • 3.3.1.1 R Markdown code chunk fig.cap
        • 3.3.1.2 bookdown with html_document2 output type
      • 3.3.2 Tables: kable() "caption"
        • 3.3.2.1 bookdown with html_document2 output type
      • 3.3.3 Equations
      • 3.3.4 captioner for any captioning and cross-referencing figures and tables
    • 3.4 R Markdown to Microsoft Word
    • 3.5 R Markdown output
      • 3.5.1 R Markdown rendering to specific formats
      • 3.5.2 Testing output_type()
    • 3.6 Advantages and disadvantages of PDF
    • 3.7 Bibliography in R Markdown
  • 4 Week 4
    • 4.1 Environments
    • 4.2 Functions
      • 4.2.1 Function Components
        • 4.2.1.1 Name
        • 4.2.1.2 Arguments
          • 4.2.1.2.1 Default values for arguments
          • 4.2.1.2.2 The ... argument
        • 4.2.1.3 Body
        • 4.2.1.4 Return value
        • 4.2.1.5 Function environments
    • 4.3 Sampling
      • 4.3.1 Sampling with replacement
      • 4.3.2 Sampling without replacement
      • 4.3.3 Bootstrapping
  • 5 Week 5
    • 5.1 Why use version control?
    • 5.2 Why use Git?
    • 5.3 Limitations of version control systems
    • 5.4 A brief Git tutorial
      • 5.4.1 Setting up Git in RStudio
      • 5.4.2 Creating a repository
      • 5.4.3 Tracking changes
      • 5.4.4 Git bash shell
      • 5.4.5 Ignoring specific files
      • 5.4.6 Exploring file change history
      • 5.4.7 Restoring a previous version
    • 5.5 Conclusion
    • 5.6 Source code
  • 6 Week 6
    • 6.1 The Add Health study data
    • 6.2 Documentation
    • 6.3 Data sets
      • 6.3.1 AHwave1_v1.dta
        • 6.3.1.1 haven::read_dta()
        • 6.3.1.2 readstata13::read.dta13()
      • 6.3.2 21600-0001-Data.dta
    • 6.4 Searching through documentation
      • 6.4.1 pdfgrep
        • 6.4.1.1 A few use examples
      • 6.4.2 pdftools::pdf_text()
    • 6.5 Conclusion
    • 6.6 Source code
  • 7 Week 7
    • 7.1 Creating value labels
      • 7.1.1 Creating factor variables
      • 7.1.2 Creating attributes
    • 7.2 Tabulation
      • 7.2.1 Raw counts
      • 7.2.2 Proportions/percentages
      • 7.2.3 Stratified tabulation
    • 7.3 Source code
  • 8 Week 8
    • 8.1 Scale scoring
      • 8.1.1 Selecting specific columns
      • 8.1.2 Comparing participant answers to correct answers
      • 8.1.3 Scoring across columns
    • 8.2 Reordering values
    • 8.3 Source code
  • 9 Week 9
    • 9.1 Substituting text
      • 9.1.1 paste(), paste0()
      • 9.1.2 sprintf()
        • 9.1.2.1 Formatting numerical values
        • 9.1.2.2 String substitutions
      • 9.1.3 str_replace(), str_replace_all()
    • 9.2 Showing progress
    • 9.3 Turning text into code: eval(parse(text = "some string"))
    • 9.4 SQL in R with RSQLite and sqldf
    • 9.5 Downloading files from password-protected web sites
    • 9.6 Dates and time stamps: POSIXct and lubridate
    • 9.7 Timing with Sys.time() and difftime()
    • 9.8 Faster files with fst()
    • 9.9 Getting US Census data with tigris, tidycensus
    • 9.10 Easier regular expressions with RVerbalExpressions
    • 9.11 Quick copy from Excel (Windows only)
    • 9.12 Running system commands
    • 9.13 Code styling
    • 9.14 Session information
    • 9.15 Comment out Rmd/HTML code
    • 9.16 Source code
  • 10 Zoom Recordings
    • 10.1 Start Time: Jan 8, 2021 10:27 AM
    • 10.2 Start Time: Jan 22, 2021 10:21 AM
    • 10.3 Start Time: Jan 29, 2021 10:25 AM
    • 10.4 Start Time: Feb 5, 2021 10:28 AM
    • 10.5 Start Time: Feb 12, 2021 10:27 AM
    • 10.6 Start Time: Feb 19, 2021 10:21 AM
    • 10.7 Start Time : Feb 26, 2021 10:29 AM
  • Published with bookdown

CSDE 502 Winter 2021

10 Zoom Recordings

10.1 Start Time: Jan 8, 2021 10:27 AM

Meeting Recording:

https://washington.zoom.us/rec/share/Ah1PgU-1l51k2n2fDyPwOvQCfeMa44-Ntn23A79LJyJ8E7VqwuN7pwH0AzETjFmV.hsK9roKarnnlc5ko

10.2 Start Time: Jan 22, 2021 10:21 AM

Meeting Recording:

https://washington.zoom.us/rec/share/1iVOz1MATixAK8FavsgmDRXjIjmxug4PcmRpNVMdu_g2ocDV3dkCmKhbVlQ90C4.9mnZZ6jz-sqR7QBk

10.3 Start Time: Jan 29, 2021 10:25 AM

Meeting Recording:

https://washington.zoom.us/rec/share/aPmtmBFD646imBvu1uW5-OdTEUGnui9uQ90UoWlhlfGIai3ekpkx9eta7ze36ltX.Hh_P5zs-TJVBwR3I

10.4 Start Time: Feb 5, 2021 10:28 AM

Meeting Recording:

https://washington.zoom.us/rec/share/hOasYyzi5cwwCK9Dn8wZTvC3RLhh0JHD6Xy8YLNET_O5AqaHbR_o9GT37kQwoFG3.cHNVd2u2CYR1BRYN

10.5 Start Time: Feb 12, 2021 10:27 AM

Meeting Recording:

https://washington.zoom.us/rec/share/37XAthQ2uQ76HI-jiDLe9pM-MxKdiDV8kAfv7F_itTSBD8lcwCS8YxvIe0DyS0RG.DBzpMQ9g3jJydypK

10.6 Start Time: Feb 19, 2021 10:21 AM

Meeting Recording:

https://washington.zoom.us/rec/share/qArE20DId_TfFuQiQJwFv_dx4h7cRQMH3XCr6RoLOEim604wW66JZzgVp0MezjGe.Ad80c8--5xVeDt4_

10.7 Start Time : Feb 26, 2021 10:29 AM

Meeting Recording:

https://washington.zoom.us/rec/share/9kIV26dT8PKX9AgiPDRMYZA2Us-bChZdgHzMgSkQc-4rmlU7hUO-wdRjwczjdSvt.wvEeJ83Y6KqRDOwo