update_col_with_diff: Update column with difference

update_col_with_diffR Documentation

Update column with difference

Description

update_col_with_diff() is an Update function that edits an object, while preserving core object attributes. Specifically, this function implements an algorithm to update column with difference. The function is called for its side effects and does not return a value.

Usage

update_col_with_diff(
  ds_tb,
  var_nm_1L_chr,
  fn,
  abs_mean_diff_1L_dbl,
  diff_sd_1L_dbl,
  multiplier_1L_dbl,
  min_1L_dbl,
  max_1L_dbl,
  integer_1L_lgl
)

Arguments

ds_tb

Dataset (a tibble)

var_nm_1L_chr

Variable name (a character vector of length one)

fn

Function (a function)

abs_mean_diff_1L_dbl

Absolute mean difference (a double vector of length one)

diff_sd_1L_dbl

Difference standard deviation (a double vector of length one)

multiplier_1L_dbl

Multiplier (a double vector of length one)

min_1L_dbl

Minimum (a double vector of length one)

max_1L_dbl

Maximum (a double vector of length one)

integer_1L_lgl

Integer (a logical vector of length one)

Value

New (a dataset)


ready4-dev/map2aqol documentation built on April 25, 2024, 12:17 p.m.