Skip to content

Commit

Permalink
address #44
Browse files Browse the repository at this point in the history
  • Loading branch information
rsbivand committed Aug 24, 2023
1 parent 4bf693f commit 3652101
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion R/classInt.R
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,9 @@ classIntervals <- function(var, n, style="quantile", rtimes=3, ..., intervalClos
if (nobs > largeN) {
warning("N is large, and some styles will run very slowly; sampling imposed")
sampling <- TRUE
nsamp <- ifelse(samp_prop*nobs < largeN, as.integer(ceiling(samp_prop*nobs)), as.integer(largeN))
# issue 44
nsamp <- as.integer(ceiling(samp_prop*nobs))
if (nsamp > largeN) nsamp <- as.integer(largeN)
}
}
if (style =="fixed") {
Expand Down

0 comments on commit 3652101

Please sign in to comment.