threenum: Calculate Minimum, Mean, and Maximum Values

threenumR Documentation

Calculate Minimum, Mean, and Maximum Values

Description

This is a simpler cousin of the standard fivenum() function, used in summary() functions for oce objects.

Usage

threenum(x)

Arguments

x

a vector or matrix of numerical values.

Value

A character vector of three values: the minimum, the mean, the maximum.

Historical note

On Aug 5, 2019, the dimension was dropped as the fourth column, and this function returned to the original intention (revealed by its name). Another change is that the function now returns numerical results, leaving the task of setting the number of digits to summary().

Author(s)

Dan Kelley

Examples

library(oce)
threenum(1:10)

oce documentation built on Sept. 11, 2024, 7:09 p.m.