An Introduction to R

00: Outline

01: R & RStudio

  • Accessing R & RStudio
  • RStudio UI

02: Things you can do in R & RStudio

  • R file types
  • .R scripts vs. .Rmd files
  • Other file types
  • RActivities
  • Expressions
    • Data types
  • Object assignment
  • Functions

03: Data Structures & Attributes

  • Data structures
  • Attributes
  • Basic attributes

04: Data Manipulation

  • Importing/exporting data
  • Modifying variables
  • Indexing
  • Subsetting data
    • Logical conditions
  • Recycling Rule

05: Programming Efficiency & Style

06: On Your Own

  • Assigned activities that you must complete

02: Things you can do in R & RStudio

  • R file types
  • .R scripts vs. .Rmd files
  • Other file types
    • Shiny apps
    • Plain .md files
    • Misc.
  • RActivities
  • Expressions
    • Data types
    • Numeric
    • Character
      • Factors
    • Logical
    • Date
    • Missing values
    • Type conversions
  • Object assignment
  • Functions

03: Data Structures & Attributes

  • Data structures
  • Vectors
  • Matrices
  • Lists
  • Data frames
  • Attributes
  • Basic attributes
    • dim()
    • nrow()
    • ncol()
    • colnames()
    • str()
    • summary()

04: Data Manipulation

  • Data Manipulation
  • Importing/exporting data
  • Modifying variables
    • Indexing
    • Subsetting data
    • Logical conditions
  • Recycling Rule

05: Programming Efficiency & Style

06: On Your Own

Read and go through the following materials:

Answer the following questions that involve both R programming and reflection:

  1. Answer questions in either Option #1 or Option #2 of Ryan Miller’s On Your Own Questions in“A Crash Course in R”

  2. Are there any items in this tutorial that you think need further clarification?

  3. What are questions that you have related to R and RStudio that were not addressed in this tutorial?

07: Additional Resources & References

Additional Resources:

References:

  • Shonda’s R Tutorials in Data Science
  • Ryan’s Crash Course in R
  • Brian Smith’s Biostat Computing Materials
  • Hands-On Programming with R by Garrett Grolemund
  • Getting used to R, RStudio, and R Markdown by Chester Ismay and Patrick C. Kennedy

Jarren Santos

last updated 05/23/2019