Example Function

Description

This is an example function that demonstrates basic functionality. It validates, cleans, calculates statistics, and formats the result.

Usage

example_function(x)

Arguments

x A numeric vector

Value

The median of the input vector, rounded to 2 decimal places

Examples

Code
library("rpt")

example_function(c(1, 2, 3, 4, 5))
[1] 3
Code
example_function(c(1, NA, 3, 4, 5))
[1] 3.5