Skip to content

[feature request] allow dims argument for all scalar statistics #1006

Open

Description

@jonathanlilly

Currently only some of the scalar statistics (e.g., mean, var, std — the ones coming from Statistics) admit dims argument (preferably a keyword argument) It would be good if all scalar statistics did so. Is this possible with the way StatsBase is structured?

Activity

  1. nalimilan commented on Aug 11, 2026

    @nalimilan
    Member

    I think the idea is that it's better to use f.(eachrow(x) and f.(eachcol(x)) as it is more generic. It works for any function automatically and does not require writing boiler plate code for each function in StatsBase (which would just call eachrow or eachcol internally).

  2. jonathanlilly commented on Aug 11, 2026

    @jonathanlilly
    Author

    Ok, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions