cont.desc | R Documentation |
Functions to describe continuous variables
cont.desc(x, y = NULL, ..., labels = NULL, data = NULL)
## S3 method for class 'cont.desc'
print(x, ...)
x |
Object of type |
y |
If x is a formula, |
... |
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 |
The cont.desc
methods returns an object of type cont.desc
object with a print
methods associated.
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.
Charles-Édouard Giguère
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.