Skip to contents

Finds the column whose name contains "year", renames it to "surveyid_year" if needed, and returns a unique two-column data.table of country_code and surveyid_year.

Usage

fix_year_var(dt)

Arguments

dt

A data.table from an auxiliary-change comparison.

Value

A data.table with columns country_code and surveyid_year.