Rubric

  1. Make three plots and interpret each with one sentence describing the visual relationship between variables.

    1. (2 p) Bivariate plot: Scatter plot: \(x\) = numerical, \(y\) = numerical (from WS 07), with axis labels and title, and interpret.

    2. (2 p) Bivariate plot: Box plot: \(x\) = categorical, \(y\) = numerical (from WS 07), with axis labels and title, and interpret.

    3. (2 p) Bivariate plot: Mosaic or bar plot: \(x\) = categorical, \(y\) = categorical (from WS 07), with axis labels and title, and interpret.

  2. Data cleaning rules, violations, and corrections.

    1. (1 p) Create an “editrules.txt” text file (can be a name of your choosing) which includes the admissible values for each variable.

    2. (1 p) Read your “editrules.txt” file and display it with readLines(). Use library(editrules) and function editfile([yourfilename]) to define the edit rules and display those.

    3. (1 p) Summarize your violated edits with violatedEdits() and display them with summary().

    4. (1 p) Describe how you deal with violated edits in word, then do it in code.