add_latest_match | R Documentation |
add_latest_match() 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 latest match. The function returns Data (a tibble).
add_latest_match(
data_tb,
dynamic_lup,
target_var_nm_1L_chr,
date_var_1L_chr = "Date",
invert_1L_lgl = FALSE,
match_var_nm_1L_chr = "UID_chr",
type_1L_chr = c("chr", "dbl", "int", "lgl")
)
data_tb |
Data (a tibble) |
dynamic_lup |
Dynamic (a lookup table) |
target_var_nm_1L_chr |
Target variable name (a character vector of length one) |
date_var_1L_chr |
Date variable (a character vector of length one), Default: 'Date' |
invert_1L_lgl |
Invert (a logical vector of length one), Default: FALSE |
match_var_nm_1L_chr |
Match variable name (a character vector of length one), Default: 'UID_chr' |
type_1L_chr |
Type (a character vector of length one), Default: c("chr", "dbl", "int", "lgl") |
Data (a tibble)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.