inmid: In the Mid

View source: R/my_function.R

my_functionR Documentation

In the Mid

Description

check x is biggger than vec[1] and smaller than vec[2].

Usage

inmid(x, vec)

Arguments

x

a numeric parameter

vec

a numeric vector, vector length is equal to two

Examples

x <- 3
vec1 <- c(1, 3)
isTRUE(inmid(x, vec1))
vec2 <- c(3, 4)
isTRUE(inmid(x, vec2))
vec3 <- c(1, 2)
isTRUE(inmid(x, vec3))

hans0803/APLM documentation built on June 17, 2024, 5:22 a.m.