README.md

R build

descripteur

The goal of descripteur is to make basic data description easy.

Features

Data description approch

Describing and comparing

In this package, a description of a data frame (or similar object) consist of a grouping and 2 sets of functions, describers and comparers. The simplest grouping is the trivial grouping where we consider 1 group consisting of all the units, in which case there is nothing to compare and a description is the set of describing functions applied, in turn, to all relevant variables.

If a grouping exists, we can apply comparing functions to the different groups. There are 2 different types of comparisons (comp) available:

If a grouping exist, this will impact the description (desc) (unless specified elsewise):

Data types and a guide

We do not describe all kinds of data in the same manner. Thus, this package differentiates between different kinds of data types:

This will be determined by a 'guide', which is a data frame that for each variables specifies how it is to be described. Any variable with only 2 distinct values will be regarded as bnry, other text- and factor variables are catg, the classes 'Date' and 'POSIXct' are date and numerical variables with enough distinct values (more than real.tol) are real.

If you do not want to accept the defaults you can create a guide via dtable_guide with non-default arguments, or manipulate the resulting object directly.

More details

More details can be found in the vignette describe-data which functions as the major test for this package.



renlund/descripteur documentation built on Sept. 24, 2023, 7:07 p.m.