collapse_cuts_fmt: Format a numeric threshold for a cut expression

View source: R/get_FSdata_helpers.R

collapse_cuts_fmtR Documentation

Format a numeric threshold for a cut expression

Description

Renders a (already-rounded) numeric threshold as a clean string with no trailing zeros or floating-point noise, for use in "var <= value" cut expressions. Integer-valued thresholds print without a decimal point.

Usage

collapse_cuts_fmt(v, digits = 0L)

Arguments

v

Numeric scalar.

digits

Integer. Decimal places used during rounding.

Value

Character scalar.


forestsearch documentation built on Nov. 15, 2026, 9:06 a.m.