randomize_na: Imputes NAs by randomization

View source: R/NA_imputation.R

randomize_naR Documentation

Imputes NAs by randomization

Description

Imputes NAs by randomization

Usage

randomize_na(df, from = 1:4)

Arguments

df

data.frame, the data containing the NAs to be imputed.

from

A vector containing the possible imputed values. Defaults to 1:4

Value

data.frame Returns a data.frame with NAs in numeric columns imputed by randomization.


pttry/statfitools documentation built on Feb. 2, 2025, 1:50 a.m.