add_change_in_ds_var | R Documentation |
add_change_in_ds_var() is an Add function that updates an object by adding new values to new or empty fields. Specifically, this function implements an algorithm to add change in dataset variable. The function returns Updated dataset (a tibble).
add_change_in_ds_var(
ds_tb,
id_var_nm_1L_chr = "fkClientID",
round_var_nm_1L_chr = "round",
round_bl_val_1L_chr = "Baseline",
change_var_nm_1L_chr,
var_nm_1L_chr,
arrange_by_id_lgl = T
)
ds_tb |
Dataset (a tibble) |
id_var_nm_1L_chr |
Identity variable name (a character vector of length one), Default: 'fkClientID' |
round_var_nm_1L_chr |
Round variable name (a character vector of length one), Default: 'round' |
round_bl_val_1L_chr |
Round baseline value (a character vector of length one), Default: 'Baseline' |
change_var_nm_1L_chr |
Change variable name (a character vector of length one) |
var_nm_1L_chr |
Variable name (a character vector of length one) |
arrange_by_id_lgl |
Arrange by identity (a logical vector), Default: T |
Updated dataset (a tibble)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.