tween: tween function

View source: R/format.R

tweenR Documentation

tween function

Description

This function checks whether a number is betwee two other numbers

Usage

tween(x, bot, top, tb_symmetry = "inclusive")

Arguments

x

is the number to check

bot

the lower (bottom) number to check against

top

the higher (top) number to check against

tb_symmetry

this switch stands for 'top and bottom symmetry' and can take on 4 values "inclusive", "gt_bot", "lt_top", "exclusive". These switches dictate whether the function includes or excludes the top and bottom numbers. The default value is "inclusive" which includes the top and bottom numbers, "gt_bot" does greater than the bottom number but less than or equal to the top, "lt_top" does greater than or equal to the bottom number but less than the top, "exclusive" performs greater than bottom number and less than top number

Examples

tween_function()

clmacleod/highlandr documentation built on Oct. 11, 2023, 8:04 p.m.