Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

Diff-int

Takes the k-th order differences


Description

Takes the k-th order differences

Usage

Diff(x, lag = 1, k = 1, axis = 2)

Arguments

x

An Expression that represents a vector

lag

The degree of lag between differences

k

The integer value of the order of differences

axis

The axis along which to apply the function. For a 2D matrix, 1 indicates rows and 2 indicates columns.

Value

Takes in a vector of length n and returns a vector of length n-k of the kth order differences


CVXR

Disciplined Convex Optimization

v1.0-10
Apache License 2.0 | file LICENSE
Authors
Anqi Fu [aut, cre], Balasubramanian Narasimhan [aut], David W Kang [aut], Steven Diamond [aut], John Miller [aut], Stephen Boyd [ctb], Paul Kunsberg Rosenfield [ctb]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.