The goal of descripteur is to make basic data description easy.
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):
We do not describe all kinds of data in the same manner. Thus, this package differentiates between different kinds of data types:
real
real, i.e. numericbnry
binary, i.e. variables with 2 distinct valuescatg
categorical,date
date (duh!), andsurv
class Surv from the survival package.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 can be found in the vignette describe-data
which functions as the
major test for this package.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.