groupLog: Assign Groups to Data on the Log Scale

Description Usage Arguments Examples

View source: R/groupLog.R

Description

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

Usage

1
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

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

JVAdams/EchoNet2Fish documentation built on Feb. 15, 2021, 4:27 a.m.