include_waves: Take baseline variable names and return variable names for...

View source: R/include_waves.R

include_wavesR Documentation

Take baseline variable names and return variable names for baseline and/or later waves

Description

Take baseline variable names and return variable names for baseline and/or later waves

Usage

include_waves(vars, waves = 0, year = NA)

Arguments

vars

A character vector of (baseline) variable names

waves

A numeric vector of survey wave numbers (0 for baseline)

year

A numeric integer of the year of survey collection

Value

vars updated to include the the names of the corresponding variables in the waves indicated by waves.


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