Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LAUS wrapper function for blsAPI #31

Merged
merged 8 commits into from
Mar 29, 2022
Merged

Conversation

glenem
Copy link
Contributor

@glenem glenem commented Sep 4, 2021

I really like your BLS package for R. I have used it in my internship at an economic development organization and in personal projects to acquire data from the BLS.

Recently, I created a function called laus_get_data (with some other functions that are used within it: laus_get_areacode, laus_get_measure and apiDF) that can obtain labor area unemployment statistics data without knowing the specific Series ID for the specific area and measure someone is looking for. Instead one can type in the area name like "California" and the measure they want like "unemployment rate" into the laus_get_data function to get a data frame of the unemployment rate for California.

I created this function so I would not have to figure out what the Series ID is for different areas I wanted to get the unemployment rate for.

I know that the apiDF function was specified in example 2 for your blsAPI but I created its own R file because I used it to process the results in a portion of the laus_get_data code.

-- Glen Martin

… series ids in the data folder. Note: cant complete the check() command in r yet
- For laus_get_data add if statement to specify api version. Got rid of error message.

- For laus_get_data fix warning by describing each parameter in laus_get_data function.
- Add an example of using the laus_get_data function in the readme file to get the unemployment rate for a few different states from 2019 to 2021
- Improve documentation of the function laus_get_data() to explain each step better

- Improve documentation of the data type for the location.vector and measure.vector parameters
- Subset Area Codes Data to include only area_code and area_text columns

- Change all instances of Metropolitan Statistical Area in the area_text column to MSA

- Change all instances of Micropolitan Statistical Area in the area_text column to MuSA

- Change all instances of Combined Statistical Area in the area_text column to CSA
@mikeasilva mikeasilva merged commit 752ce40 into mikeasilva:master Mar 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants