groupLog: Assign Groups to Data on the Log Scale

View source: R/groupLog.R

groupLogR Documentation

Assign Groups to Data on the Log Scale

Description

Assign groups to a collection of values, on the log-transformed scale.

Usage

groupLog(x, n, xR = range(x[x > 0 & !is.na(x) & is.finite(x)]))

Arguments

x

Numeric vector of values to group.

n

Integer scalar, the number of groups.

xR

Numeric vector of length two, range of values used to define groups, default is the range of finite, positive, non-missing x values.

Examples

myx <- c(100, 3000, 3, 20, 8000, 1000, 400, 50, 7, 20000)
groupLog(myx, n=3)


krphillips/EchoNet2Fish documentation built on March 19, 2022, 11:59 p.m.