descriptives: Compute descriptive statistics

Description Usage Arguments Details Value Examples

View source: R/descriptives.R

Description

Compute descriptive statistics

Usage

1

Arguments

data

a data.frame

...

variable names (unquote) for which to compute the descriptive statistics

Details

If no a single variable name is passed to the function, it computes descriptive statistics across all variables. Before computing all variables are coerced via as.numeric(). Missing values are ignored (na.rm=TRUE).

Value

data.frame with summary statistics.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
 ## Not run: 

 x <- rpois(100,10)
y <- rnorm(100,0, 2)
z <- rexp(100, 1)
dat <- data.frame(x=x, y=y, z=z)
 descriptives(dat, z, x)
 descriptives(dat)

 
## End(Not run)

sumtxt/datatools documentation built on Oct. 7, 2018, 11:18 p.m.