Learn R Programming

rccmisc (version 0.3.7)

width: Calculate the width of the range of x

Description

Calculate the width of the range of x

Usage

width(x)

Arguments

x
object to calculate range for

Value

The width of the range of x as integer.

Examples

Run this code
width(1:10)
width(c(6748, 234, 2456, 5678))
width(sample(345))

Run the code above in your browser using DataLab