mydiff: Difference a matrix

View source: R/mydiff.r

mydiffR Documentation

Difference a matrix

Description

This function differences an entire matrix by some defined constant k.

Usage

mydiff(x,k)

Arguments

x

The matrix to be differenced.

k

An integer of the length of difference to perform on each vector of the NxT matrix.

Value

xx A matrix that has been differenced k times.


Stevo15025/PANICr documentation built on Sept. 7, 2024, 4:30 p.m.