| width | R Documentation |
Calculates the width of a numeric vector by computing the difference between the maximum and minimum values in the vector.
width(x)
x |
A numeric vector. |
The width of the vector, calculated as the difference between its maximum and minimum values.
2024-2025 Tobias Schmidt: initial version.
vec <- c(1, 3, 5, 7, 9)
width(vec)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.