intRange: Return a range defined by integers

View source: R/utils.R

intRangeR Documentation

Return a range defined by integers

Description

The function is similar to range but returns integer ranges that are just outside the real range: i.e. the floor of the left range and the ceiling of the right range.

Usage

intRange(x, na.rm = TRUE)

Arguments

x

A numeric vector

na.rm

Logical, whether NA should be removed

Value

A vector of integers of length 2.

Author(s)

Jitao David Zhang <jitao_david.zhang@roche.com>

Examples


intRange(rnorm(100))


bedapub/ribiosPlot documentation built on Sept. 1, 2023, 6:50 p.m.