clr: Centered Log-ratio transformation

View source: R/utils.R

clrR Documentation

Centered Log-ratio transformation

Description

Calculate the centered log-ratio transformation of a vector

Usage

clr(x, base = 2)

Arguments

x

numeric vector

base

integer base of the log function. Default 2.

Examples

x <- c(1, 2, 3, 4, 5, 6, 7, 8, 9, 1500)
clr(x)

coriell-research/coriell documentation built on March 29, 2025, 2:19 p.m.