width: Get the width of a vector.

Description Usage Arguments Value Examples

View source: R/interval_vctr.R

Description

For most vectors, the difference between the minimum and maximum. For intervals, the difference between the end and the start of the interval.

Usage

1
width(x, ...)

Arguments

x

A vector

...

Optional arguments passed down to other functions.

Value

The width of the vector

Examples

1
2
width(c(10, 1))
width(interval(1:3, 5:7))

teunbrand/ggvctrcoords documentation built on Jan. 12, 2020, 6:25 p.m.