Compute the mode or mean of x

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)

Arguments

x

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

Value

numeric vector