ISLR 4.6 Lab: Logistic Regression, LDA, QDA, and KNN
4.6.1TheStockMarketData>library(ISLR)>names(Smarket)[1]"Year""Lag1""Lag2""Lag3""Lag4"[6]"Lag5""Volume""Today""Direction">dim(Smarket)[1]12509Thecor()functionproducesamatrixthatcontainsallofthepairwise