transform_uid_var: Transform unique identifier variable

transform_uid_varR Documentation

Transform unique identifier variable

Description

transform_uid_var() 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 unique identifier variable. Function argument data_tb specifies the object to be updated. Argument id_var_nm_1L_chr provides the object to be updated. The function returns Transformed data (a tibble).

Usage

transform_uid_var(
  data_tb,
  id_var_nm_1L_chr,
  rename_tb = NULL,
  old_new_chr = c("old_id_xx", "new_id_int")
)

Arguments

data_tb

Data (a tibble)

id_var_nm_1L_chr

Identity variable name (a character vector of length one)

rename_tb

Rename (a tibble), Default: NULL

old_new_chr

Old new (a character vector), Default: c("old_id_xx", "new_id_int")

Value

Transformed data (a tibble)


ready4-dev/specific documentation built on Oct. 13, 2023, 7:54 a.m.