Quantcast
Channel: Active questions tagged r - Stack Overflow
Viewing all articles
Browse latest Browse all 201894

no non-missing arguments to min; returning Inf

$
0
0

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)

Viewing all articles
Browse latest Browse all 201894

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>