Learn R Programming

oce (version 1.8-3)

threenum: 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)

Value

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

Arguments

x

a vector or matrix of numerical values.

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

Dan Kelley

Examples

Run this code
library(oce)
threenum(1:10)

Run the code above in your browser using DataLab