Skip to content

Commit 240703c

Browse files
committed
older edits
2 parents 58cecfc + 5122560 commit 240703c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+271
-332
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: classInt
22
Version: 0.4-10
3-
Date: 2023-08-15
3+
Date: 2023-08-24
44
Title: Choose Univariate Class Intervals
55
Authors@R: c(
66
person("Roger", "Bivand", role=c("aut", "cre"), email="[email protected]", comment=c(ORCID="0000-0003-2392-6140")),

R/classInt.R

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,11 +132,13 @@ classIntervals <- function(var, n, style="quantile", rtimes=3, ..., intervalClos
132132
# introduced related to https://github.com/r-spatial/classInt/issues/7
133133
sampling <- FALSE
134134
if (warnLargeN &&
135-
(style %in% c("kmeans", "hclust", "bclust", "fisher", "jenks"))) {
135+
(style %in% c("fisher", "jenks"))) {
136136
if (nobs > largeN) {
137137
warning("N is large, and some styles will run very slowly; sampling imposed")
138138
sampling <- TRUE
139-
nsamp <- ifelse(samp_prop*nobs > 3000, as.integer(ceiling(samp_prop*nobs)), 3000L)
139+
# issue 44
140+
nsamp <- as.integer(ceiling(samp_prop*nobs))
141+
if (nsamp > largeN) nsamp <- as.integer(largeN)
140142
}
141143
}
142144
if (style =="fixed") {

docs/404.html

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/articles/headtailsR.html

Lines changed: 182 additions & 70 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
1.13 KB
688 Bytes
606 Bytes
738 Bytes
1.01 KB
672 Bytes

0 commit comments

Comments
 (0)