mean_or_mode: Compute the mode or mean of 'x'

View source: R/mean_or_mode.R

mean_or_modeR Documentation

Compute the mode or mean of x

Description

Compute the mode or mean of x

Usage

mean_or_mode(x)

## Default S3 method:
mean_or_mode(x)

## S3 method for class 'character'
mean_or_mode(x)

## S3 method for class 'factor'
mean_or_mode(x)

## S3 method for class 'logical'
mean_or_mode(x)

## S3 method for class 'data.frame'
mean_or_mode(x)

Arguments

x

extract the mean or the mode of vector or data.frame x depending on its type

Value

numeric vector


marginaleffects documentation built on Nov. 24, 2022, 1:06 a.m.