Skip to content

HistDat

0.2.0Package record

Summary Statistics for Histogram/Count Data

0packages dependsuggested by 1
2.8Kdownloads / year
93.6%test coverage
11/13flavors OK

Overview

About

In some cases you will have data in a histogram format, where you have a vector of all possible observations, and a vector of how many times each observation appeared. You could expand this into a single 1D vector, but this may not be advisable if the counts are extremely large. 'HistDat' allows for the calculation of summary statistics without the need for expanding your data.

Changes in 0.2.0

Added

  • Implemented the [ operator for HistDat instances, allowing you to find the value at the ith position if the observations were flattened into a 1-D vector.
  • Implemented the sort operator as a no-op, for compatibility with R base functions.
  • Implemented the c function, allowing you to concatenate new observations into a HistDat instance. This also allows HistDat instances to interoperate with other R base functions.
  • Added S3 implementations for mean, median and sort, which are S3 generic methods that aren't S4 aware, meaning that you can only implement them using S3 methods. This also allows for better integration with R internals.

Changed

  • Previously the quantile() method actually flattened the entire observation vector which crashed R in situations with high counts. This is now fixed.
  • Ensure that the vals vector is sorted upon calling HistDat::HistDat().

From NEWS.md in the release

Install

Health

CRAN checks
2NOTE11OK
Check messages
NOTECRAN incoming feasibilityr-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc
Maintainer: ‘Michael Milton <michael.r.milton@gmail.com>’

No Authors@R field in DESCRIPTION.
Please add one, modifying
  Authors@R: person(given = "Michael",
                    family = "Milton",
                    role = c("aut", "cre"),
                    email = "michael.r.milton@gmail.com")
as necessary.

CRAN check page ↗

Slowest check: 1.1 min · r-oldrel-windows-x86_64
Status changes
  • NOTE11 OK, 2 NOTENow
  • NOTE12 OK, 2 NOTE2026-03-10
Advisories

none known

Documentation

In release 0.2.0
READMENoVignettesYes · 1 · dynamicNEWSYes · 67% structured · mentions 0.2.0Citation fileNoWebsitenot declared in DESCRIPTION
Help pages
19includes a package overview page
Examples that run
100%17 run in a plain check
Exported functions with examples
100%
Documented parameters
100%
Return-value docs
50%
Help pages citing references
0%
Vignettes (1)

Downloads

2.8K
CRAN downloads in the past year
Rank #17,438 · ~8/day · ~235/mo
Daily download trend is not available in this view yet.
25130 days
73890 days
2.8K1 year
Compare downloads with other packages →
Also on68 r2u3 autocran882 conda_forge

Dependencies

Declared dependencies
3 external dependencies (excludes base and recommended)

Installing HistDat adds no packages beyond those that come with R.

Depends (0)
none
Imports (2)
methodsstats
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect
Suggested by 1
Suggests, most downloaded first

People & History

People (from the free-text Author field) (1)

Maintainer since 0.1.0 (2021)

Releases (2)

Pick two releases to compare their code metrics.

  • R
    R 4.6.0 released · 2026-04-24
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • R
    R 4.3.0 released · 2023-04-21
  • R
    R 4.2.0 released · 2022-04-22
  • R
    R 4.1.0 released · 2021-05-18
  • 0.2.0Latest
    record
    2021-04-06 · current release · diff ↗
  • 0.1.0
    record
    2021-04-02
  • R
    R 4.0.0 released · 2020-04-24

Package metadata

First published
2021-04-02
Total releases
2 / 5 yrs
License
GPL (>= 3) OSI
Download size
14 KB

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("HistDat")

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for HistDat version 0.2.0 [Data set]. HJJB, LLC. Data release v2026-10-25. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-25, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy