Coder Social home page Coder Social logo

Comments (4)

dcomtois avatar dcomtois commented on July 23, 2024

Isn't it what it does already? The most frequent occurences are listed along with their frequencies. Am I misunderstanding your suggestion?

from summarytools.

paulfeitsma avatar paulfeitsma commented on July 23, 2024

Let me try to this with an example (code below), with a sample data set with salaries. I found that many times there are always a few salaries that appear more often than others. In my example this are 1594.20 (minimum monthly wage in The Netherlands) and 2000. This will create the following data frame summary.

df_summary_example_salaries

With regard to the 2nd column it would be handy if it would mention that values 1594.20 and 2000 appear most frequent. The first one you can see in the graph, but the value 2000 would be overlooked.

minimum_wage <- 1594.20; df <- data.frame(PersonID = 1:1000 ,salary = c(sample(x = minimum_wage:5000, size = 600), rep(minimum_wage, 200), rep(2000,200))); view(dfSummary(df)); head(sort(table(df$salary), decreasing=TRUE));

from summarytools.

dcomtois avatar dcomtois commented on July 23, 2024

Ah ok, I see now, thanks for clarifying... Deserves some thinking for sure!

from summarytools.

dcomtois avatar dcomtois commented on July 23, 2024

After giving it some thought, I think this is a bit of an overkill. The mode will be shown for binary variables (issue #48) but otherwise, I think there's already a lot of info for numerical variables. I'll reopen if the feature is requested further in the future. Thx.

from summarytools.

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.