avg: Compute central tendancy as approrpriate to data type

View source: R/utils.R

avgR Documentation

Compute central tendancy as approrpriate to data type

Description

Compute central tendancy as approrpriate to data type

Usage

avg(val)

Arguments

val

a vector of values

Value

a mean (if numeric) or a median (if ordered) or mode (otherwise)


IQSS/Zelig documentation built on Dec. 11, 2023, 1:51 a.m.