Learn R Programming

ggplot2bdc (version 0.3.2)

span: Calculate the distance between the minimum and maximum values

Description

span calculates the distance between a vector's minimum and maximum values. Only finite and non-NA values are considered.

Usage

span(n)

Arguments

Examples

Run this code
vals <- sample(1:100, 10)
span(vals)

Run the code above in your browser using DataLab