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), ">")
    )
}

Try the sdcLog package in your browser

Any scripts or data that you put into this service are public.

sdcLog documentation built on March 20, 2022, 1:06 a.m.