prepare_imp_NAs: Make all values of vars with imputation flag = 1 into NAs

View source: R/prepare_imp_NAs.R

prepare_imp_NAsR Documentation

Make all values of vars with imputation flag = 1 into NAs

Description

Make all values of vars with imputation flag = 1 into NAs

Usage

prepare_imp_NAs(df, vars, flag = "pimp.", waves = 1:12)

Arguments

df

The data.frame to use

vars

Character vector of variable names

flag, waves

See flag_names

Value

A modified version of df with all flagged values of vars made NA


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