avg: Compute central tendancy as approrpriate to data type

Description Usage Arguments Value

View source: R/utils.R

Description

Compute central tendancy as approrpriate to data type

Usage

1
avg(val)

Arguments

val

a vector of values

Value

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


Zelig documentation built on Jan. 8, 2021, 2:26 a.m.

Related to avg in Zelig...