File: test_quantile_probs.R

package info (click to toggle)
r-cran-classint 0.4-11%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 328 kB
  • sloc: fortran: 65; ansic: 13; sh: 13; makefile: 2
file content (7 lines) | stat: -rw-r--r-- 213 bytes parent folder | download
1
2
3
4
5
6
7
library(classInt)
# issue #1
set.seed(101)
data_censored <- c(rep(0,10), rnorm(100, mean=20,sd=1),rep(26,10))
expect_error(classInt::classIntervals(data_censored, style = "quantile", 
  probs = seq(0, 1, 0.25)))