favstats: Some favorite statistical summaries

Description Usage Arguments Value Examples

Description

Computes median, IQR, mean, standard deviation, and variance of a data vector.

Usage

1
favstats(x, na.rm = TRUE)

Arguments

x

numeric vector

na.rm

boolean indicating whether missing data should be ignored

Value

A vector of (named) statistical summaries

Examples

1
2
favstats(1:10)
favstats(faithful$eruptions)

Example output

Loading required package: nlme
Loading required package: lattice
Loading required package: grid
Loading required package: mosaic
Loading required package: dplyr

Attaching package: 'dplyr'

The following object is masked from 'package:nlme':

    collapse

The following objects are masked from 'package:stats':

    filter, lag

The following objects are masked from 'package:base':

    intersect, setdiff, setequal, union

Loading required package: ggformula
Loading required package: ggplot2
Loading required package: ggstance

Attaching package: 'ggstance'

The following objects are masked from 'package:ggplot2':

    GeomErrorbarh, geom_errorbarh


New to ggformula?  Try the tutorials: 
	learnr::run_tutorial("introduction", package = "ggformula")
	learnr::run_tutorial("refining", package = "ggformula")
Loading required package: mosaicData
Loading required package: Matrix

The 'mosaic' package masks several functions from core packages in order to add 
additional features.  The original behavior of these functions should not be affected by this.

Note: If you use the Matrix package, be sure to load it BEFORE loading mosaic.

Attaching package: 'mosaic'

The following object is masked from 'package:Matrix':

    mean

The following object is masked from 'package:ggplot2':

    stat

The following objects are masked from 'package:dplyr':

    count, do, tally

The following objects are masked from 'package:stats':

    IQR, binom.test, cor, cor.test, cov, fivenum, median, prop.test,
    quantile, sd, t.test, var

The following objects are masked from 'package:base':

    max, mean, min, prod, range, sample, sum

 min   Q1 median   Q3 max mean      sd  n missing
   1 3.25    5.5 7.75  10  5.5 3.02765 10       0
 min      Q1 median      Q3 max     mean       sd   n missing
 1.6 2.16275      4 4.45425 5.1 3.487783 1.141371 272       0

abd documentation built on May 2, 2019, 4:46 p.m.