attrition_drop: Replace values with NAs if respondent did not participate in...

View source: R/attrition_drop.R

attrition_dropR Documentation

Replace values with NAs if respondent did not participate in a survey wave

Description

Replace values with NAs if respondent did not participate in a survey wave

Usage

attrition_drop(imp_df, wave, wave_indicator)

Arguments

imp_df

Data frame from after imputation

wave

The wave number

wave_indicator

A logical vector. Each element should be TRUE if the respondent is in the wave and FALSE if not.

Value

Updated imp_df.


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