In-class Ex5a

Author

Jayexx Low

Published

May 11, 2024

Modified

May 25, 2024

Installing & loading required libraries

The code chunk below installs and launches the tidyverse, ggdist, ggridges, colourspace & ggthemes packages into R environment

pacman:: p_load(jsonlite, tidyverse, tidygraph, ggraph)

Importing the data

The code chunk below imports exam_data.csv into R environment by using read_csv() function of readr package, which is part of the tidyverse package.

mc1_data <- fromJSON("data/mc1.json")
mc2_data <- fromJSON("data/mc2.json")
mc3_data <- fromJSON("data/mc3.json")