add_diff_value: Add a new column as a differenced value of existing column

Description Usage Arguments

View source: R/transformations.R

Description

Add a new column as a differenced value of existing column

Usage

1
add_diff_value(.data, value_var = NULL, by_vars = NULL, postfix = "_diff")

Arguments

.data

input data.table

value_var

character; name of the original column

by_vars

character; vector of dimensions for 'group by'

postfix

character; posfix is added at the end of the name of the new column


vh-d/RETL documentation built on June 28, 2020, 10:33 a.m.