capper: Capper

Description Usage Arguments Value

View source: R/capper.R

Description

a function that cuts a number between a floor and a ceiling.

Usage

1

Arguments

x

number or vector to cap

floor

floor of cap

ceiling

ceiling of cap

Value

a number either equal to x, floor or ceiling, depending on if x is smaller than floor or larger than ceiling, or between floor and ceiling.


eysteinmeese91/magimisc documentation built on Oct. 3, 2020, 10:10 a.m.