Learn R Programming

cif (version 0.1.1)

diffe: appends NA at beginning of diff(y)

Description

appends NA at beginning of diff(y) and creates column names accordingly when y is either a vector and a matrix

Usage

diffe(y)

Arguments

y

either a vector and a matrix

Value

Dy contains the differences of y, with NA appended at the start

References

Berta et al. 2020