Learn R Programming

pbox (version 0.1.8)

fun_stats: Summary Statistics

Description

Computes summary statistics for a numeric vector. This function is an S4 method for the generic 'fun_stats', specifically tailored for numeric vectors. It calculates the minimum, maximum, mean, and median values.

Usage

fun_stats(x)

Value

A list containing the minimum, maximum, mean, and median of the input vector.

Arguments

x

A numeric vector for which summary statistics are to be computed.

Examples

Run this code
x <- c(1, 2, 3, 4, 5)
fun_stats(x)

Run the code above in your browser using DataLab