fun_stats-methods: Summary Statistics

fun_statsR Documentation

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)

Arguments

x

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

Value

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

Examples

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


pbox documentation built on May 29, 2024, 7:37 a.m.