Skip to content

Commit

Permalink
Update functions.R
Browse files Browse the repository at this point in the history
  • Loading branch information
jrosell authored Dec 28, 2023
1 parent 5f9f69d commit 4719011
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions functions.R
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ clean_unemp <- function(unemp_data,

# This is a helper function to clean the data
clean_data <- function(x){
print("clean_data")
x %>%
janitor::clean_names() %>%
mutate(level = case_when(
Expand All @@ -70,6 +71,7 @@ clean_data <- function(x){

# This reads in the data.
get_data <- function(){
print("unemp_data")
list(
"https://raw.githubusercontent.com/b-rodrigues/modern_R/master/datasets/unemployment/unemp_2013.csv",
"https://raw.githubusercontent.com/b-rodrigues/modern_R/master/datasets/unemployment/unemp_2014.csv",
Expand Down

0 comments on commit 4719011

Please sign in to comment.