Learn R Programming

incadata (version 0.9.1)

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
# NOT RUN {
width(1:10)
width(c(6748, 234, 2456, 5678))
width(sample(345))
# }

Run the code above in your browser using DataLab