Giter Site home page Giter Site logo

Comments (9)

etiennebacher avatar etiennebacher commented on June 18, 2024 1

min_valid sounds better to me

from datawizard.

etiennebacher avatar etiennebacher commented on June 18, 2024

On the other hand, if you see rowmean_n() for the first time, what do you think the n stand for?

rowmean_n_missing() is also a bit misleading IMO because n actually refers to the minimal number of non-missing values required to compute the mean.

from datawizard.

etiennebacher avatar etiennebacher commented on June 18, 2024

I guess if I were a user discovering this function:

  • rowmean_n() -> hard to know that it does because I don't know what the n stands for, so need to check the docs
  • rowmean_n_missing() -> this function computes the rowmean if there are n or more missing values (while it's the opposite)

from datawizard.

IndrajeetPatil avatar IndrajeetPatil commented on June 18, 2024

When I read that name, my first hunch is that it's going to calculate rowwise mean for the first n rows.

from datawizard.

strengejacke avatar strengejacke commented on June 18, 2024

I don't think there is a perfect name for this function, but rowmean_n_missing() looks very cryptic to me.

from datawizard.

strengejacke avatar strengejacke commented on June 18, 2024

See also https://r4stats.com/2014/09/03/adding-the-spss-mean-n-function-to-r/

from datawizard.

DominiqueMakowski avatar DominiqueMakowski commented on June 18, 2024

Wouldn't it be easier with just a homemade version of row_mean() (or average_cols()) with some select/exclude sugar and anmax_missing argument?

from datawizard.

strengejacke avatar strengejacke commented on June 18, 2024

That sounds good!

from datawizard.

strengejacke avatar strengejacke commented on June 18, 2024

max_missing or min_valid? I'm used to think in minimum amount of valid values...

from datawizard.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.