The fill.missing function uses the
transcan function from the
Hmisc package to impute values for the given data.frame.
A data.frame object. It should have missing values.
Seed provided for random-number generation. Default value of 101.
logical: whether to remove duplicate missingness columns.
An integer value or character string. Indicates the column containing IDs, specified as column index or column name. Defaults to "id", or NA, when not found.
Additional arguments, potentially passed to
The fill.missing function will fill the missing values within a data.frame
with the values imputed with the
transcan function. An idcol may be
specified to prevent including the use of IDs in the imputation. In addition
for every column that contains missing data, a new column will be attached to
the data.frame containing an indicator of missingness. A "1" indicates that
the value was missing and has been imputed.
data.frame with imputed values
1 2 3 4
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.