Skip to contents

transform_ds_to_predn_ds() is a Transform function that edits an object in such a way that core object attributes - e.g. shape, dimensions, elements, type - are altered. Specifically, this function implements an algorithm to transform dataset to prediction dataset. Function argument data_tb specifies the object to be updated. Argument predr_vars_nms_chr provides the object to be updated. The function returns Data (a tibble).

Usage

transform_ds_to_predn_ds(
  data_tb,
  predr_vars_nms_chr,
  tfmn_1L_chr,
  depnt_var_nm_1L_chr,
  id_var_nm_1L_chr,
  round_var_nm_1L_chr,
  round_bl_val_1L_chr,
  predictors_lup
)

Arguments

data_tb

Data (a tibble)

predr_vars_nms_chr

Predictor variables names (a character vector)

tfmn_1L_chr

Transformation (a character vector of length one)

depnt_var_nm_1L_chr

Dependent variable name (a character vector of length one)

id_var_nm_1L_chr

Identity variable name (a character vector of length one)

round_var_nm_1L_chr

Round variable name (a character vector of length one)

round_bl_val_1L_chr

Round baseline value (a character vector of length one)

predictors_lup

Predictors (a lookup table)

Value

Data (a tibble)