diam_group: Group Diameters

Description Usage Arguments Details Value Examples

View source: R/d.R

Description

Group diameters in diameter classes of given size

Usage

1
diam_group(x, s = 1)

Arguments

x

numeric vector of diameters

s

an integer for specifying group size

Details

This function takes a numeric vector of diameters and a group size and classifies each diameter into a group.

Value

a data.table with the diameters, the group they belong to and the respective upper group boundary

Examples

1
2
d <- rnorm(40, mean = 50, sd = 3)
diam_group(d)

cszang/sawmill documentation built on May 14, 2019, 12:27 p.m.