R: Calculate min, mean, and max values

threenum {oce} | R Documentation

## 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()`.

### Author(s)

Dan Kelley

### Examples

    library(oce)
    threenum(1:10)

[Package oce version 1.2-0 Index]