Learn R Programming

Zelig (version 5.0-8)

avg: 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)