get_question: Prints out the survey question column label for a given column in a given dataset.
Description
get_question() prints out the survey question associated with a given
column in a given dataset name.
Usage
get_question(do, q)
Arguments
do
a CES survey data object (given as a character string)
q
a column name in a CES survey data object (given as a character string)
Value
The associated question q in a loaded dataset do.
Details
The order of the parameters for get_question are data object then column name.
Both parameters must be character strings and cannot be reversed.
To return the associated survey question, the get_question function relies
on the var_label function from the labelled package.
# NOT RUN {# print out CES code callsget_cescodes()
# call CES surveyget_ces("ces1988")
# request the survey question for column a6get_question("ces1988", "a6")
# }