width: Calculate the width of the range of x

Description Usage Arguments Value Examples

View source: R/width.R

Description

Calculate the width of the range of x

Usage

1
width(x)

Arguments

x

object to calculate range for

Value

The width of the range of x as integer.

Examples

1
2
3
width(1:10)
width(c(6748, 234, 2456, 5678))
width(sample(345))

Example output

[1] 10
[1] 6515
[1] 345

rccmisc documentation built on May 2, 2019, 2:48 p.m.