Learn R Programming

rplanes (version 0.1.0)

cutter: Cut into categorical differences

Description

This unexported helper function takes an input number for an observed difference and cuts it into a categorical description (e.g., "increase", "decrease", or "stable") of the change.

Usage

cutter(x, threshold = 1)

Value

Character vector of length 1 with the categorical description of difference

Arguments

x

Vector of length 1 with scaled difference to be categorized

threshold

Limit used to define the categorical differences; default is 1