cond.desc: Description of continuous variables

cont.descR Documentation

Description of continuous variables

Description

Functions to describe continuous variables

Usage

cont.desc(x, y = NULL, ..., labels = NULL, data = NULL)
## S3 method for class 'cont.desc'
print(x, ...)

Arguments

x

Object of type formula, matrix or data.frame

y

If x is a formula,y or data contains the data from x or are set to NULL if the variables are in the main environment

...

used for compatibility

labels

Optional vector of labels the same length as the dimension of x or the number of variables in formula

data

see y for details

Details

The cont.desc methods returns an object of type cont.desc object with a print methods associated.

Value

An object of type "data.frame" and "cont.desc" containing the number of variables, the number of missing variables, the mean, standard deviation, min and max.

Author(s)

Charles-Édouard Giguère

Examples

Ex <- data.frame(test1 = c(2, 4, NA, 3, NA),
                 test2 = c(2, 3, 5, NA, 4),
                 test3 = c(1, 4, 10, 23, NA))

### Applied on a data.frame.
cont.desc(Ex)

### Applied using a formula.
cont.desc(~ test1 + test2, Ex)


giguerch/CUFF documentation built on March 27, 2024, 5:36 p.m.