I'm assuming this question pops up quite often and most are related to ggmap
-related issues.
However, when I was browsing an example data (Advertising data from Gareth James et al.'s ISLR), which does not contain missing values nor Inf/-Inf coded cells, I found that R
returns an error message saying that "no non-missing arguments to min; returning Inf." I am wondering what's going on.
Below is my code.
Advertising <- read.csv("https://www.dropbox.com/s/xxzkmpwexorvtm8/Advertising.csv?dl=1")
new_data <- Advertising[, -1]
Advertising <- new_data
names(Advertising)
summary(Advertising$Sales)