discretes 0.1.1
CRAN release: 2026-09-11
- Added a
Summarygroup generic method so thatrange(),min(),max(),sum(), andprod()work on numeric series. Previously these fell through to base R defaults and operated on the internal representation; e.g.range(natural1())wrongly returnedc(0, Inf)instead ofc(1, Inf). -
dsct_transform()now warns when the declaredrangeis wider than the function’s image. -
num_discretes()now returns0with a warning whento < from(an empty range), consistently across all series types, rather than erroring. This acts as a guard whendsct_transform()specifies a functionrangethat is wider than the mappeddomain.
