Learn R Programming

nFactors (version 2.3.1)

moreStats: Statistical Summary of a Data Frame

Description

This function produces another summary of a data.frame. This function was proposed to be able to apply some functions globally on a data.frame: quantile, median, min and max. The usual R version cannot do so.

Usage

moreStats(x, quantile=0.95, show=FALSE)

Arguments

x
numeric: matrix or data.frame.
quantile
numeric: quantile of the distribution.
show
logical: if TRUE prints the quantile chosen.

Value

  • valuesnumeric: data.frame of statistics: mean, median, quantile, standard deviation, minimum and maximum.

See Also

plotuScree, nScree, plotnScree, plotParallel

Examples

Run this code
## GENERATION OF A MATRIX OF 100 OBSERVATIONS AND 10 VARIABLES
 x   <- matrix(rnorm(1000),ncol=10)

## STATISTICS
 res <- moreStats(x, quantile=0.05, show=TRUE)
 res

Run the code above in your browser using DataLab