span: Calculate the span/range of a time series

Description Usage Arguments Value Author(s) Examples

View source: R/span.R

Description

This function has been implemented for a simpler call of apply.

Usage

1
span(x)

Arguments

x

A vector

Value

diff(range(x,na.rm=TRUE))

Author(s)

Dominik Reusser

Examples

1
2
   data(models_dawson,package="wasim")
   span(models_dawson[,1])

wasim documentation built on May 1, 2019, 6:50 p.m.