first_difference: Calculate the first difference of a vector.

View source: R/first_difference.R

first_differenceR Documentation

Calculate the first difference of a vector.

Description

Function to calculate the first difference of a vector.

Usage

first_difference(x)

Arguments

x
  • the vector to calculate the first difference for

Details

None.

Value

the vector of first differences


wStockhausen/wtsUtilities documentation built on March 16, 2024, 10:38 a.m.