mean_of_log: mean_of_log

View source: R/CodeAndRoll2.R

mean_of_logR Documentation

mean_of_log

Description

Calculates the mean of the log_k of a numeric vector (it excludes NA-s by default).

Usage

mean_of_log(x, k = 2, na.rm = TRUE)

Arguments

x

A numeric vector.

k

The base of the logarithm. Defaults to 2.

na.rm

Should NA values be removed before calculation? Defaults to TRUE.

Value

The mean of the log_k of the input vector.

Examples

mean_of_log(1:5)


vertesy/CodeAndRoll2 documentation built on Nov. 20, 2024, 5:23 a.m.