Learn R Programming

R offer many tools to analyse the univariate or bivariate distribution of series. This includes table and prop.table on base R, and group_by/summarise and count in dplyr. However, these functions are somehow frustrating as some very common tasks, like adding a total or computing relative frequencies or percentage and not counts are not straightforward. Moreover, to our knowledge, R offer weak support for numerical series for which the numerical value is not known at the individual level, but only the fact that this value belongs to a certain class. descstat is intended to provide user-friendly tools to perform these kind of operations. More specifically, three kind of tables can be constructed:

  • freq_table for frequency tables, suitable for factors or integer numerical series,
  • bins_table for bins tables, suitable for numerical series, either provided as a numeric or as a factor containing numerical classes,
  • cont_table for contingency tables of two series.

These function are writen in the tidyverse style, which means that the pipe operator can be used and that the series can be provided without quotes.

Copy Link

Version

Install

install.packages('descstat')

Monthly Downloads

167

Version

0.1-2

License

GPL (>= 2)

Maintainer

Yves Croissant

Last Published

February 17th, 2021

Functions in descstat (0.1-2)

print_method

Print methods for bin, freq_table and cont_table objects
padova

Housing prices in Padova
income

Income of French households
wages

DADS survey
univariate

Functions to compute statistics on univariate distributions
freq_table

Frequency table
reexports

Objects exported from other packages
rgp

Extract of the French census
bin

Bin series
bivariate

Functions to compute statistics on bivariate distributions
pre_plot

Put a tibble in form to plot
employment

French employment survey
descstat-package

descstat: a toolbox for descriptive statistics
cont_table

Contingency table