Skip to contents

Recent IPEDS surveys have data dictionaries in Excel formats, with one sheet ("Frequencies") giving the labels for codes used in categorical values. This function naively takes a dataframe and recodes a column accordingly. It isn't a fancypants dplyr-style function; if you want this to use quosures or whatever, YOU write the code.

Usage

ipeds_label(x, varname, dict)

Arguments

x

dataframe to operate on with IPEDS data

varname

column name (as a string)

dict

data frame from an IPEDS dictionary spreadsheet, assumed to have columns varname, codevalue, codelabel