Comments (4)
Isn't it what it does already? The most frequent occurences are listed along with their frequencies. Am I misunderstanding your suggestion?
from summarytools.
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.
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.
Ah ok, I see now, thanks for clarifying... Deserves some thinking for sure!
from summarytools.
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)
- Bug: `print.summarytools` fails printing when `method="pander"`
- Do not check grouped_df by callstack in ctable
- Specify how to order rows in a ctable()
- prettyNum error HOT 3
- Width of dfSummary output in html HOT 3
- printr package causes 2 graphs in dfSummary() rendered output
- dfSummary: histogram x-axis tick mark labels? HOT 1
- dfSummary: box plots for numeric variables? HOT 1
- Installing in Azure Synapse + SparkR: Error "fatal error: Magick++.h: No such file or directory compilation terminated." HOT 1
- Security: update jQuery to >=3.6.0 HOT 2
- Change of results when using tb() in grouped freq() HOT 3
- Bug in print generic implementation for list HOT 1
- [Feature request] dfSummary() with docx HOT 1
- UTF-8/odd character handling causes header headaches HOT 3
- Dependency on TCL/Tk breaks Docker/headless mode
- Group Index Does Not Print When Applying stby Through a Function on a List of Data Frames
- error when using dfSummary with shiny
- Fisher's exact test in ctable()?
- Getting incorrect results when using stby and descr with weights HOT 1
- Absolute max for dfSummary? Error when max.distinct.values>220
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from summarytools.