Because the CPS is a fixed-width file that changes data locations (and variable names) across years, to correctly read the data you have to specify which start/end positions correspond to which column names in each year. This is one such specification. To add extra data or change column names, see the Vignette.
1 |
A data frame with 204 rows and 8 columns:
year
original column name as given by the CPS
a new name, which tries to describe the variable and join sensibly across multiple years
which character of a line the variable starts with
which character of a line the variable ends with
whether the column is character, numeric, or a factor
the question text/description from the CPS
any notes for question administration or analysis
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.