R/utils.R

Defines functions fill_na

#' Helper function to fill SDC variables
#' @importFrom data.table set
#' @keywords internal
#' @noRd
fill_na <- function(data, id_var, rows) {
    data.table::set(
        data,
        i = rows,
        j = id_var,
        value = paste0("<filled_", seq_along(rows), ">")
    )
}
matthiasgomolka/sdcLog documentation built on July 17, 2025, 3:21 a.m.