Rename_Variables: Renames all of the variables in the survey based on a...

View source: R/manipulate.R

Rename_VariablesR Documentation

Renames all of the variables in the survey based on a data.table with two columns

Description

Renames all of the variables in the survey based on a data.table with two columns

Usage

Rename_Variables(Survey_List, Names)

Arguments

Survey_List

this is a list containing the downloaded (or filtered) data from the survey for a multiple-part survey.

Names

needs to be a data.table with two columns that have the old variable names (those pulled using Get_Variable_Names, for example)- Names$RAW and the new ones (Variable registry names)- Names$ANALYSIS

Value

The surveys, with additional columns for the panel_provider and project_code in each of the survey parts

Examples

## Not run: 
Rename_Variables(Cint_Surveys_0, Variable_Names)

## End(Not run)

bpresentati/surveyR documentation built on March 19, 2022, 3:40 a.m.