Skip to content

Add convenience skip-missing methods for Base aggregation functions #146

Description

@CameronBieganek

xref: https://discourse.julialang.org/t/why-are-missing-values-not-ignored-by-default/106756

There are some users who dislike mean(skipmissing(x)) because they view it as too verbose or too many keystrokes. Aggregation functions that skip missing values are very commonly needed, so I think it would be worth adding convenience skip-missing methods for Base aggregation functions to Missings.jl, e.g.

  • smean
  • ssum
  • svar
  • scor

The svar and scor functions could have a keyword argument to control exactly how missing values are skipped, similar to cor in R.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions