{"id":13858427,"url":"https://github.com/dcomtois/summarytools","last_synced_at":"2025-11-17T12:00:53.434Z","repository":{"id":23617346,"uuid":"26986728","full_name":"dcomtois/summarytools","owner":"dcomtois","description":"R Package to Quickly and Neatly Summarize Data","archived":false,"fork":false,"pushed_at":"2023-11-10T06:50:35.000Z","size":36481,"stargazers_count":520,"open_issues_count":37,"forks_count":78,"subscribers_count":20,"default_branch":"master","last_synced_at":"2024-10-28T17:24:47.531Z","etag":null,"topics":["descriptive-statistics","frequency-table","html-report","markdown","pander","pandoc","pandoc-markdown","r","rmarkdown","rstats","rstudio"],"latest_commit_sha":null,"homepage":"","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dcomtois.png","metadata":{"files":{"readme":"README.Rmd","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2014-11-22T02:57:02.000Z","updated_at":"2024-10-25T08:43:07.000Z","dependencies_parsed_at":"2023-01-14T01:01:01.846Z","dependency_job_id":"5b4914bc-cccc-4c8c-9ea8-1e976c11a092","html_url":"https://github.com/dcomtois/summarytools","commit_stats":{"total_commits":1387,"total_committers":15,"mean_commits":92.46666666666667,"dds":"0.018745493871665464","last_synced_commit":"707ff03e0aa5c9eeac91207508a2857779b4c797"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcomtois%2Fsummarytools","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcomtois%2Fsummarytools/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcomtois%2Fsummarytools/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcomtois%2Fsummarytools/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dcomtois","download_url":"https://codeload.github.com/dcomtois/summarytools/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225929942,"owners_count":17547081,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["descriptive-statistics","frequency-table","html-report","markdown","pander","pandoc","pandoc-markdown","r","rmarkdown","rstats","rstudio"],"created_at":"2024-08-05T03:02:08.308Z","updated_at":"2025-11-17T12:00:53.346Z","avatar_url":"https://github.com/dcomtois.png","language":"R","funding_links":["https://www.paypal.com/cgi-bin/webscr?cmd=_donations\u0026business=HMN3QJR7UMT7S\u0026item_name=Help+scientists,+data+scientists+and+analysts+around+the+globe\u0026currency_code=CAD\u0026source=url","https://buymeacoffee.com/dcomtois"],"categories":["R"],"sub_categories":[],"readme":"---\noutput: \n  github_document\nalways_allow_html: true\n---\n\n\u003c!-- badges: start --\u003e\n[![CRAN status](https://www.r-pkg.org/badges/version/summarytools)](https://CRAN.R-project.org/package=summarytools)\n[![](https://cranlogs.r-pkg.org/badges/summarytools)](http://cran.rstudio.com/web/packages/summarytools/index.html)\n[![](https://cranlogs.r-pkg.org/badges/grand-total/summarytools)](http://cran.rstudio.com/web/packages/summarytools/index.html)\n\u003cspan class=\"badge-paypal\"\u003e\u003ca href=\"https://www.paypal.com/cgi-bin/webscr?cmd=_donations\u0026business=HMN3QJR7UMT7S\u0026item_name=Help+scientists,+data+scientists+and+analysts+around+the+globe\u0026currency_code=CAD\u0026source=url\" title=\"Donate to this project using Paypal\"\u003e\u003cimg src=\"https://img.shields.io/badge/PayPal-Donate-blue\" alt=\"PayPal donate button\"/\u003e\u003c/a\u003e\u003c/span\u003e\n\n\u003c!-- badges: end --\u003e⁠\n\n```{r knitr-setup, include=FALSE}\nlibrary(knitr)\nopts_chunk$set(echo = TRUE, results = 'asis', class.output = \"small\")\nlibrary(summarytools)\nst_options(plain.ascii = FALSE,\n           style = \"rmarkdown\",\n           footnote = NA,\n           subtitle.emphasis = FALSE,\n           dfSummary.silent = TRUE,\n           dfSummary.style = \"grid\",\n           descr.silent = TRUE)\nlibrary(kableExtra)\n```\n\n# Summarytools 1.1 is out! \n\n\u003ca href=\"#latest\"\u003eCheck out what's new.\u003c/a\u003e\n\nLove **summarytools**? Share the love, [buy me a coffee!](https://buymeacoffee.com/dcomtois)\n\n\u003ca href=\"https://buymeacoffee.com/dcomtois\"\u003e\u003cimg src=\"img/bmc_qr.png\" width=\"100\" height=\"100\"/\u003e\u003c/a\u003e\n\n![](img/collage.png)\n\n**summarytools** is a an [*R*](https://www.r-project.org) package for data\ncleaning, exploring, and simple reporting. The package was developed with the\nfollowing objectives in mind:\n\n-   Provide a coherent set of easy-to-use descriptive functions akin to\n    those included in commercial statistical software suites such\n    as SAS, SPSS, and Stata \n - Offer flexibility in terms of output format \u0026 content  \n - Integrate well with commonly used software \u0026 tools for reporting\n   (the [RStudio](https://posit.co/products/open-source/rstudio/) IDE,\n   [Rmarkdown](https://rmarkdown.rstudio.com/),\n   [Quarto](https://quarto.org/docs/get-started/), and \n    [knitr](https://yihui.org/knitr/)) while also allowing for standalone,\n    simple report generation using any R interface\n\nOn a more personal level, I simply wish to share with the R community and the\nscientific community at large the functions I first developed for myself, but\nrealized would benefit others who are facing similar challenges when \ndealing daily with (often messy) data.\n\n# Package Documentation\n\nThe bulk of the technical documentation can now be found in the following\nvignettes:\n\n[**Introduction to summarytools**](https://htmlpreview.github.io/?https://github.com/dcomtois/summarytools/blob/master/doc/introduction.html)  |  [CRAN version](https://cran.r-project.org/package=summarytools/vignettes/introduction.html)  \n[**Summarytools in R Markdown**](https://htmlpreview.github.io/?https://github.com/dcomtois/summarytools/blob/master/doc/rmarkdown.html)  |  [CRAN Version](https://cran.r-project.org/packages=summarytools/vignettes/rmarkdown.html)  \n[**PDF Manual**](https://cran.r-project.org/web/packages/summarytools/summarytools.pdf) (automatically generated by CRAN)\n\n# Installing summarytools\n\n### Required Software\n\nAdditional software is used by **summarytools** for fine-tuning graphics as well\nas offering interactive functionality. If you are installing **summarytools**\nfor the first time, click on the relevant link to get OS-specific instructions.\nOn Windows, no additional software is required.\n\n\u003ca href=\"#required-mac-os\"\u003eMac OS X\u003c/a\u003e  \n\u003ca href=\"#required-debian\"\u003eUbuntu / Debian / Mint\u003c/a\u003e  \n\u003ca href=\"#required--older-ubuntu\"\u003eOlder Ubuntu (14 and 16)\u003c/a\u003e  \n\u003ca href=\"#required-fedora\"\u003eFedora / Red Hat / CentOS\u003c/a\u003e  \n\u003ca href=\"#required-solaris\"\u003eSolaris\u003c/a\u003e\n\n### Installing From GitHub\n\nThis method has the advantage of benefiting from minor fixes and improvements\nthat are added between CRAN releases. Its main drawback is that you won't be\nnoticed when a new version is available. You can either check this page from\ntime to time, or best, use a package that checks for package updates on various\nrepositories, such as [dtupdate](https://github.com/hrbrmstr/dtupdate) and\n[Drat](https://dirk.eddelbuettel.com/code/drat.html).\n\n```{r, eval=FALSE}\ninstall.packages(\"remotes\")        # Using devtools or pak is also possible\nlibrary(remotes)\ninstall_github(\"rapporter/pander\") # Strongly recommended\ninstall_github(\"dcomtois/summarytools\", build_vignettes = TRUE)\n```\n\n### Installing From CRAN\n\nCRAN versions are stable but are not updated as often as the GitHub versions. On\nthe plus side, they can be easier to install on some systems.\n\n```{r, eval=FALSE}\ninstall.packages(\"summarytools\")\n```\n\n# \u003ca id=\"latest\"\u003e\u003c/a\u003eLatest Changes\n\n- Version 1.1.0 introduced a few significant improvements, aside from the bug\n  fixes.\n\n  - In `stby()`, the `useNA` parameter can be used to generate additional\n    groupings for observations where the grouping variable(s) are `NA`\n  - Labelled vectors from **haven** \u0026 **labelled** are treated like factors\n    by `freq()` (always) and `dfSummary()` (only when all values have labels;\n    this is to avoid generating factors with countless numerical levels).\n  - `descr()` is more flexible with the stats parameters; you can for instance \n    use `stats = c(\"all\", -\"kurtosis\")` if you need everything except kurtosis\n  - The helper function `zap_attr()` turns results into simple matrices,\n    adding an alternative to `tb()` when you need to work further with the\n    results\n  - A new `na.val` parameter was added to `freq()`, `ctable()` and\n    `dfSummary()`, which allows treating a particular character value or\n    factor level as `NA`. One common instance would be \"\" (empty string) for\n    character vectors.\n  - Sampling weights were a bit buggy with by-groups, and so was `tb()` with\n    `freq()` results. This is now a thing of the past. \n  - See the package's NEWS for more details: `news(package=\"summarytools\")`\n  \n- In `dfSummary()` since 1.0.1:\n\n    -   It is possible to control which statistics to show in the *Freqs /\n        Values* column (see `help(\"st_options\", \"summarytools\")` for examples)  \n    -   In *html* outputs, tables are better aligned horizontally\n        (categories \\\u003e\\\u003e counts \\\u003e\\\u003e charts); if misalignment occurs, adjusting\n        `graph.magnif` should resolve it\n    -   List-type columns and `Inf` values are handled properly\n\nFor more details, see `vignette(\"introduction\", \"summarytools\")` as well as\n`news(package = \"summarytools\")`.\n\n# Additional Software Installations\n\n### \u003ca id=\"required-mac-os\"\u003e\u003c/a\u003eRequired Software on Mac OS\n\n- [**XQuartz**](https://www.xquartz.org/)\n- [**Magick++**](https://imagemagick.org/Magick++/) \n\nMagick++ can be installed using \n[Homebrew](https://formulae.brew.sh/formula/imagemagick) or \n[Macports](https://ports.macports.org/port/ImageMagick/).\n\n\u003ca href=\"#installing-from-github\"\u003eBack to installation instructions\u003c/a\u003e\n\n### \u003ca id=\"required-debian\"\u003e\u003c/a\u003eRequired Software for Debian / Ubuntu / Linux Mint\n\n[**Magick++**](https://imagemagick.org/Magick++/)  \n`sudo apt install libmagick++-dev`\n\n\u003ca href=\"#installing-from-github\"\u003eBack to installation instructions\u003c/a\u003e\n\n### \u003ca id=\"required-older-ubuntu\"\u003e\u003c/a\u003eRequired Software for Older Ubuntu Versions\n\nThis applies only if you are using Ubuntu Trusty (14.04) or Xenial (16.04).\n\n[**Magick++**](https://imagemagick.org/Magick++/)\n\n    sudo add-apt-repository -y ppa:opencpu/imagemagick\n    sudo apt-get update\n    sudo apt-get install -y libmagick++-dev\n\n\u003ca href=\"#installing-from-github\"\u003eBack to installation instructions\u003c/a\u003e\n\n### \u003ca id=\"required-fedora\"\u003e\u003c/a\u003eRequired Software for Fedora / Red Had / CentOS\n\n[**Magick++**](https://imagemagick.org/Magick++/)  \n`sudo yum install ImageMagick-c++-devel`\n\n\u003ca href=\"#installing-from-github\"\u003eBack to installation instructions\u003c/a\u003e\n\n### \u003ca id=\"required-solaris\"\u003e\u003c/a\u003eRequired Software for Solaris\n\n[**Magick++**](https://imagemagick.org/Magick++/)\n\n    pkgadd -d http://get.opencsw.org/now\n    /opt/csw/bin/pkgutil -U\n    /opt/csw/bin/pkgutil -y -i imagemagick \n    /usr/sbin/pkgchk -L CSWimagemagick\n\n\u003ca href=\"#installing-from-github\"\u003eBack to installation instructions\u003c/a\u003e\n\n# Support *summarytools*' Development\n\nIf **summarytools** brings value to your work, please consider making a\ndonation. It will bring a smile to my face and boost my productivity! [Buy me a coffee](https://buymeacoffee.com/dcomtois),\nor use the [PayPal link](\"https://www.paypal.com/cgi-bin/webscr?cmd=_donations\u0026business=HMN3QJR7UMT7S\u0026item_name=Help+scientists,+data+scientists+and+analysts+around+the+globe\u0026currency_code=CAD\u0026source=url\"). Thanks!\n\n\u003ca href=\"https://buymeacoffee.com/dcomtois\"\u003e\u003cimg src=\"img/bmc_qr.png\" width=\"100\" height=\"100\" style=\"justify: center\"/\u003e\u003c/a\u003e\u003ca href=\"https://www.paypal.com/cgi-bin/webscr?cmd=_donations\u0026business=HMN3QJR7UMT7S\u0026item_name=Help+scientists,+data+scientists+and+analysts+around+the+globe\u0026currency_code=CAD\u0026source=url\"\u003e\u003cimg src=\"img/paypal-blue.svg\" width=\"170\" height=\"30\"/\u003e\u003c/a\u003e\n\n### \u003ca id=\"supporters\"\u003e\u003c/a\u003eSupporters\nA big thanks to the following people who made donations:\n\n-   Ashirwad Barnwal  \n-   David Thomas  \n-   Peter Nilsson  \n-   Ross Dunne  \n-   Igor Rubets  \n-   Joerg Sahlmann\n-   Mark Friedman\n-   Roger Hilfiker\n-   Stefano Lav\n\nThe package comes with no guarantees. It is a work in progress and feedback is\nalways welcome. Please open an [issue on\nGitHub](https://github.com/dcomtois/summarytools/issues) if you find a bug or\nwish to submit a feature request.\n\n\u003ca href=\"#top\"\u003eBack to top\u003c/a\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdcomtois%2Fsummarytools","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdcomtois%2Fsummarytools","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdcomtois%2Fsummarytools/lists"}