add_diff: Add n-difference to the dataset

View source: R/add_diff.R

add_diffR Documentation

Add n-difference to the dataset

Description

Add n-difference to the dataset

Usage

add_diff(X, exclude = NULL, n = 1L)

Arguments

X

A df/tibble

exclude

A vector of columns names indicating columns to ignore when computing the fd. Names can be passed directly as if they were variables in the environment - if missing defaults to NULL.

n

A numeric indicating the order of the differencied variables.

Value

A df/tibble augmented with differencied variables.


aflatoune/approche-directe documentation built on May 30, 2022, 1:56 p.m.