mean_or_mode: Compute the mode or mean of 'x'

Description Usage Arguments Value

View source: R/mean_or_mode.R

Description

Compute the mode or mean of x

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
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 Oct. 19, 2021, 1:09 a.m.