Skip to content

Extras

Want to learn more? Take a look at our extra lessons.

Go to Extra

  • Getting Started With Strings
  • Combining and Subsetting Strings
  • Regular Expressions
  • Creating Factors
  • Altering Factors

Go to Extra

  • When you should write a function
  • Steps to writing a function
  • Naming conventions
  • Arguments
  • Returns
  • Conditionals
  • Environment

Go to Extra

  • Getting started with loops
  • Output
  • While loops
  • Loops with conditionals and functions
  • Error handling

Go to Extra

The ggally package provides a function for creating scatterplot matrices. A scatterplot matrix arranges multiple scatterplots on a grid so that they are easy to compare to one another.

Go to Extra

The stargazer package makes it easy to create publication quality regression tables in html or LateX.

Go to Extra

This extra demonstrates two useful tools for handling missing data in statistical models.

Go to Extra

Have you ever wanted to change your ggplots with the click of a button? Wouldn’t it be nice to use a drop-down menu to filter your data? R Shiny allows you and others to interact with your code through a graphic web interface.

Go to Extra

The caret package provides a consistent framework for fitting hundreds of different types of predictive models, then comparing them to select the most effective models using out of sample accuracy.

Go to Extra

This extra shows you an easy way to split up your loops over multiple cores on your computer to run in “parallel” and speed up large or long-running loops.