median.leem: Median value

View source: R/measures_of_position.R

median.leemR Documentation

Median value

Description

Class method leem for the generic median function

Usage

## S3 method for class 'leem'
median(x, na.rm = FALSE, rounding = 2, grouped = TRUE, details = FALSE, ...)

Arguments

x

R object (list) of class leem. Use new_leem() function.

na.rm

a logical value indicating whether NA values should be stripped before the computation proceeds.

rounding

Numerical object. Rounds the values in its first argument to the specified number of decimal places (default 2).

grouped

Logical object. Determines whether the measure of position result will be based on grouped data or not (default TRUE).

details

Logical object. Details of data (default FALSE).

...

further arguments passed to or from other methods.

Examples

library(leem)
library(stats)
# Examples
rnorm(36, 100, 50) |> new_leem(variable = 2) |> tabfreq() |> median()

leem documentation built on April 3, 2025, 6:04 p.m.

Related to median.leem in leem...