Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

findCols

extract classes from classInterval object


Description

This helper function is a wrapper for findInterval to extract classes from a "classInterval" object

Usage

findCols(clI)

Arguments

clI

a "classIntervals" object

Value

an integer vector of class indices

Author(s)

Roger Bivand <Roger.Bivand@nhh.no>

See Also

Examples

if (!require("spData", quietly=TRUE)) {
  message("spData package needed for examples")
  run <- FALSE
} else {
  run <- TRUE
}
if (run) {
data(jenks71, package="spData")
fix5 <- classIntervals(jenks71$jenks71, n=5, style="fixed",
 fixedBreaks=c(15.57, 25, 50, 75, 100, 155.30))
print(fix5)
}
if (run) {
print(findCols(fix5))
}

classInt

Choose Univariate Class Intervals

v0.4-3
GPL (>= 2)
Authors
Roger Bivand [aut, cre] (<https://orcid.org/0000-0003-2392-6140>), Hisaji Ono [ctb], Richard Dunlap [ctb], Matthieu Stigler [ctb], Bill Denney [ctb] (<https://orcid.org/0000-0002-5759-428X>), Diego Hernangómez [ctb] (<https://orcid.org/0000-0001-8457-4658>)
Initial release
2020-04-05

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.