cvlog: Coefficient of variation (CV) using log-transformed data

View source: R/coefvariation.R

cvlogR Documentation

Coefficient of variation (CV) using log-transformed data

Description

Computes the coefficient of variation (CV) after log-transformation of the provided data

Usage

cvlog(x, na.rm)

Arguments

x

a numeric vector with values that are NOT log-transformed

na.rm

logical, if TRUE then NA values are stripped from x before computation takes place

Value

numeric vector of length one. If x contains a zero, then NaN is returned. If x is not numeric or integer, NA_real_ is returned

Examples

library(SLINGtools)
cvlog(c(5,6,3,4,5, NA), na.rm = TRUE)


SLINGhub/SLINGtools documentation built on April 20, 2023, 5:09 a.m.