Learn R Programming

mosaic (version 0.5-1)

favstats: Some favorite statistical summaries

Description

Computes mean, standard deviation, quartiles, sample size and number of missing values for a data vector.

Usage

favstats(x, ..., na.rm = TRUE)

## S3 method for class 'matrix,ANY': favstats(x, ..., na.rm = TRUE)

## S3 method for class 'numeric,ANY': favstats(x, ..., na.rm = TRUE)

## S3 method for class 'formula,ANY': favstats(x, data=parent.frame(), ..., na.rm = TRUE)

## S3 method for class 'ANY,data.frame': favstats(x, data=parent.frame(), ..., na.rm = TRUE)

Arguments

x
numeric vector
data
a data frame
na.rm
boolean indicating whether missing data should be ignored
...
additional arguments (currently ignored)

Value

  • A vector of statistical summaries

Examples

Run this code
favstats(1:10)
favstats(faithful$eruptions)

Run the code above in your browser using DataLab