Learn R Programming

marginaleffects (version 0.8.1)

mean_or_mode: Compute the mode or mean of x

Description

Compute the mode or mean of x

Usage

mean_or_mode(x)

# S3 method for default mean_or_mode(x)

# S3 method for character mean_or_mode(x)

# S3 method for factor mean_or_mode(x)

# S3 method for logical mean_or_mode(x)

# S3 method for data.frame mean_or_mode(x)

Value

numeric vector

Arguments

x

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