Session Ready
Exercise

Correlations

Construct a correlation matrix for the variables corresponding to departure delay, arrival delay, and air speed, using a subset of airspeed between 50 and 800.

Instructions
100 XP

Use rxCor to construct the correlation matrix:

The syntax of rxCor function is: rxCor(formula, data, rowSelection) where

  • formula - a right-sided formula that specifies the variables you would like correlate.
  • data - The dataset in which you want to search for the variables in the formula.
  • rowSelection - a logical expression that will be used to select particular rows for analysis. Rows in which the expression is TRUE will be included in the correlation values; rows in which hte expression is FALSE will not.