View source: R/transformations.R
Add a new column as a differenced value of existing column
1 | add_diff_value(.data, value_var = NULL, by_vars = NULL, postfix = "_diff")
|
.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 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.