Learn R Programming

gen5helper (version 1.0.1)

range_: Return range of a vector

Description

This computes the range of a vector as a value.

Usage

range_(x, na.rm = TRUE)

Arguments

x

numeric

na.rm

bool whether to remove NA values.

Value

numeric value

Examples

Run this code
# NOT RUN {
range_(c(1, 5, 10))
range_(c(1, 5, 10, NA), na.rm = TRUE)
# }

Run the code above in your browser using DataLab