Learn R Programming

oce (version 1.7-2)

threenum: Calculate min, mean, and max 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().

Examples

Run this code
# NOT RUN {
library(oce)
threenum(1:10)
# }

Run the code above in your browser using DataLab