Skip to content

dataSDA v0.2.6

Latest

Choose a tag to compare

@hanmingwu1103 hanmingwu1103 released this 11 Jun 22:09

dataSDA v0.2.6 — minor update of the CRAN package (previous CRAN version 0.2.5).

R CMD check --as-cran (R 4.6.0, Windows): 0 errors | 0 warnings | 0 notes.

New features

  • check_zero_width_intervals() — diagnostic that flags zero-width
    intervals (min == max) in interval-valued data. Accepts both MM format
    (paired _min/_max columns) and RSDA format (symbolic_tbl with
    symbolic_interval columns). Returns (invisibly) a logical scalar carrying
    a "flagged" matrix and a "variables" vector, and warns by default.
    A tol argument allows near-zero widths to be flagged. Useful for screening
    data before tools that divide by interval width (e.g.
    ggInterval::ggInterval_indexImage()).

  • aggregate_to_symbolic(type = "int") gains a zero_width argument
    controlling how zero-width intervals in the aggregated output are handled:

    • "keep" (default) — leave the output untouched; zero-width intervals
      are returned as-is, with no removal, no adjustment, and no warning.
    • "remove" — drop every concept containing a zero-width interval.
    • "regenerate" — re-run the aggregation until none remain (stochastic
      group_by only).
    • "adjust" — add a small epsilon to each zero-width upper endpoint.

    A companion epsilon argument sets the adjustment amount. For "remove"
    and "adjust", a single warning names the affected variables and the action
    taken.

Other changes

  • environment.mix: the four modal columns are restored to proper
    symbolic_modal vctrs so the object matches ggInterval::Environment in
    class and format; documentation updated accordingly. Regeneration script
    added under data-raw/.
  • Vignette polished (subtitle, ggInterval plotting calls, v0.2.6 citation).
    The eval = NOT_CRAN gate keeps the CRAN vignette build fast (code-only);
    full evaluated renders are attached below as assets.
  • Stopped tracking generated inst/doc/ artifacts so built tarballs no longer
    ship orphaned vignette figures.

See NEWS.md for the complete changelog.

Assets

  • dataSDA_0.2.6.tar.gz — the CRAN source tarball (passes R CMD check --as-cran).
  • dataSDA_intro.html / dataSDA_intro.pdf — fully evaluated vignette
    (rendered offline with NOT_CRAN=true).