library(readxl)
## Warning: package 'readxl' was built under R version 4.0.5
myData <- read_excel("Ch3_Q37_Data_File.xlsx")
View(myData)
You can also embed plots, for example:
## , , = M
##
##
## Red
## 1 12
## 2 6
## 3 15
## 4 10
myData1 = myData[which(myData$Size == "XL" & myData$Color == "Purple"), ]
tn = table(myData1$Quantity, myData1$Color , myData1$Size)
tn
## , , = XL
##
##
## Purple
## 1 9
## 2 9
## 3 6
## 4 9
Look at the heat map and the lowest value is the red cell the highest is the greenest.