Description Usage Arguments Value Examples
Load multiple years of data from the Current Population Survey.
This function will also download the data for you, if it is not present in
the given dir
.
1 2 3 4 5 6 7 |
years |
Which years to read in. Thie function will read data from files
in |
dir |
The folder where the CPS data files live. These files should follow a naming scheme that contains the 4-digit year of the results in question, and have a ".zip" or ".gz" extension. |
cols |
Which columns to read. This must be a data frame, with required
columns |
names_col |
The column in |
join_dfs |
Whether to combine all of the years into a single data frame,
or leave them as a list of data frames. Defaults to |
a data frame, or list of data frames
1 | ## Not run: cps_read(years = 2016, names_col = "new_name")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.