step_diff: Calculate the difference within a variable

Description Usage Arguments Details Value

View source: R/step_diff.R

Description

Calculate the difference within a variable

Usage

1
step_diff(rec, o_var, n_var)

Arguments

rec

A rec object

o_var

Old variable to transform

n_var

New variable name

Details

Difference for a variable is defined as the nth value - the (n-1)th value

Value

A rec object


MohoWu/oilPrep documentation built on Dec. 17, 2021, 4:20 a.m.