NAs_to_zeros: Convert NAs in imputation flags to zeros

View source: R/NAs_to_zeros.R

NAs_to_zerosR Documentation

Convert NAs in imputation flags to zeros

Description

This function takes a data.frame df and converts all NAs in the imputation flag variables to zeros.

Usage

NAs_to_zeros(df, patt = "pimp.")

Arguments

df

A data frame

patt

Pattern to grep for. Used to find the column names corresponding to the imputation flag variables.

Value

df, updated


jgabry/RHhelpers documentation built on Feb. 22, 2024, 12:56 p.m.