Last updated: 2022-07-13

Checks: 7 0

Knit directory: myTidyTuesday/

This reproducible R Markdown analysis was created with workflowr (version 1.7.0). The Checks tab describes the reproducibility checks that were applied when the results were created. The Past versions tab lists the development history.


Great! Since the R Markdown file has been committed to the Git repository, you know the exact version of the code that produced these results.

Great job! The global environment was empty. Objects defined in the global environment can affect the analysis in your R Markdown file in unknown ways. For reproduciblity it’s best to always run the code in an empty environment.

The command set.seed(20210907) was run prior to running the code in the R Markdown file. Setting a seed ensures that any results that rely on randomness, e.g. subsampling or permutations, are reproducible.

Great job! Recording the operating system, R version, and package versions is critical for reproducibility.

Nice! There were no cached chunks for this analysis, so you can be confident that you successfully produced the results during this run.

Great job! Using relative paths to the files within your workflowr project makes it easier to run your code on other machines.

Great! You are using Git for version control. Tracking code development and connecting the code version to the results is critical for reproducibility.

The results in this page were generated with repository version f05cefe. See the Past versions tab to see a history of the changes made to the R Markdown and HTML files.

Note that you need to be careful to ensure that all relevant files for the analysis have been committed to Git prior to generating the results (you can use wflow_publish or wflow_git_commit). workflowr only checks the R Markdown file, but you know if there are other scripts or data files that it depends on. Below is the status of the Git repository when the results were generated:


Ignored files:
    Ignored:    .Rhistory
    Ignored:    .Rproj.user/
    Ignored:    data/.Rhistory
    Ignored:    data/CNHI_Excel_Chart.xlsx
    Ignored:    data/Chicago.rds
    Ignored:    data/CommunityTreemap.jpeg
    Ignored:    data/Community_Roles.jpeg
    Ignored:    data/SeriesReport-20220414171148_6c3b18.xlsx
    Ignored:    data/Weekly_Chicago_IL_Regular_Reformulated_Retail_Gasoline_Prices.csv
    Ignored:    data/YammerDigitalDataScienceMembership.xlsx
    Ignored:    data/YammerMemberPage.rds
    Ignored:    data/YammerMembers.rds
    Ignored:    data/df.rds
    Ignored:    data/grainstocks.rds
    Ignored:    data/hike_data.rds
    Ignored:    data/netflixTitles.rds
    Ignored:    data/netflixTitles2.rds
    Ignored:    data/raw_weather.RData
    Ignored:    data/us_states.rds
    Ignored:    data/us_states_hexgrid.geojson
    Ignored:    data/weatherstats_toronto_daily.csv

Untracked files:
    Untracked:  code/YammerReach.R
    Untracked:  code/autokeras.R
    Untracked:  code/chicago.R
    Untracked:  code/glmnet_test.R
    Untracked:  code/googleCompute.R
    Untracked:  code/work list batch targets.R
    Untracked:  environment.yml
    Untracked:  figure/
    Untracked:  report.html

Unstaged changes:
    Modified:   analysis/2021_01_19_tidy_tuesday.Rmd
    Modified:   analysis/2021_03_24_tidy_tuesday.Rmd
    Deleted:    analysis/2021_04_20.Rmd
    Deleted:    analysis/2022_02_11_tabular_playground.Rmd
    Deleted:    analysis/2022_04_18.qmd
    Modified:   analysis/Survival.Rmd
    Modified:   analysis/_site.yml
    Modified:   code/_common.R

Note that any generated files, e.g. HTML, png, CSS, etc., are not included in this status report because it is ok for generated content to have uncommitted changes.


These are the previous versions of the repository in which changes were made to the R Markdown (analysis/index.Rmd) and HTML (docs/index.html) files. If you’ve configured a remote Git repository (see ?wflow_git_remote), click on the hyperlinks in the table below to view the files as they were in that past version.

File Version Author Date Message
html f05cefe opus1993 2022-07-13 Build site.
html 7461753 opus1993 2022-05-20 Build site.
html ba7462e opus1993 2022-05-17 Build site.
html e1a143b opus1993 2022-05-17 Build site.
html a1b352f opus1993 2022-05-05 Build site.
Rmd cf98be5 opus1993 2022-05-05 suppressPackageStartupMessages
html 5a92f92 opus1993 2022-05-05 Build site.
Rmd 955d604 opus1993 2022-05-05 use the new knitr chunk options
html 5dd04dc opus1993 2022-05-05 Build site.
html 3a408b8 opus1993 2022-05-05 Build site.
html 16131be opus1993 2022-04-18 Build site.
html fbcf261 opus1993 2022-04-18 Build site.
html ad69435 opus1993 2022-03-16 Build site.
html 0482608 opus1993 2022-02-23 Build site.
html 3eaf158 opus1993 2022-01-30 Build site.
html 0c747e4 opus1993 2022-01-21 Build site.
html d34f65a opus1993 2022-01-21 Build site.
html bea94a9 opus1993 2021-12-26 Build site.
html aa65a6b opus1993 2021-12-26 Build site.
Rmd 77899ce opus1993 2021-12-26 workflowr::wflow_publish("analysis/index.Rmd")
html 485e867 opus1993 2021-10-13 Build site.
html 2f3df0c opus1993 2021-10-12 Build site.
html af49f93 opus1993 2021-10-11 Build site.
html 247b166 opus1993 2021-10-11 Build site.
html f1512b0 opus1993 2021-10-11 Build site.
html 136ec1e opus1993 2021-10-11 Build site.
html bb5ce05 opus1993 2021-10-10 Build site.
html 08f0537 opus1993 2021-10-07 Build site.
html c7b8f57 opus1993 2021-10-07 Build site.
html f0ffa32 opus1993 2021-10-05 Build site.
html ee45e18 opus1993 2021-10-03 Build site.
html e98eb4d opus1993 2021-10-03 Build site.
html eb3845f opus1993 2021-09-29 Build site.
html ab8fce2 opus1993 2021-09-29 Build site.
html 2c36a6b opus1993 2021-09-29 Build site.
html b0574f9 opus1993 2021-09-24 Build site.
html 9c9fdd6 opus1993 2021-09-24 Build site.
html f0fc268 opus1993 2021-09-24 Build site.
html 5e082c4 opus1993 2021-09-24 Build site.
html 0ecadb5 opus1993 2021-09-24 Build site.
html e5aa5e8 opus1993 2021-09-24 Build site.
html 3f10250 opus1993 2021-09-24 Build site.
html f9b2ded opus1993 2021-09-24 Build site.
html d76b4a3 opus1993 2021-09-22 Build site.
html 5601352 opus1993 2021-09-21 Build site.
html 8bb65fc opus1993 2021-09-21 Build site.
html 49f517e opus1993 2021-09-21 Build site.
html 73513af opus1993 2021-09-21 Build site.
html 4f22206 opus1993 2021-09-17 Build site.
html c5f914b opus1993 2021-09-15 Build site.
html 913adef opus1993 2021-09-15 Build site.
html 4217d68 opus1993 2021-09-14 Build site.
html d1ba72e opus1993 2021-09-14 Build site.
html 8b8b885 opus1993 2021-09-13 Build site.
html 13c0644 opus1993 2021-09-13 Build site.
html 007f564 opus1993 2021-09-11 Build site.
html e669f86 opus1993 2021-09-09 Build site.
html 18fc4aa opus1993 2021-09-09 Build site.
html 744582e opus1993 2021-09-09 Build site.
html c9d8d5e opus1993 2021-09-09 Build site.
html 7d4eb3f opus1993 2021-09-08 Build site.
html 6a78362 opus1993 2021-09-08 Build site.
html 4ff694a opus1993 2021-09-08 Build site.
html 04bdaa7 opus1993 2021-09-08 Build site.
html 1be6dc2 opus1993 2021-09-08 Build site.
html aaf3aaa opus1993 2021-09-08 Build site.
Rmd 480a38d opus1993 2021-09-08 fix hyperlink to sort properly
html e9216f1 opus1993 2021-09-08 Build site.
html 1e65696 opus1993 2021-09-08 Build site.
Rmd 6948c3b opus1993 2021-09-08 sort packages and set column widths
html e7f2b76 opus1993 2021-09-08 Build site.
html b8fc516 opus1993 2021-09-08 Build site.
html 1476352 opus1993 2021-09-07 Build site.
Rmd b3a9f94 opus1993 2021-09-07 wflow_publish("analysis/index.Rmd")
Rmd f1bb186 opus1993 2021-09-07 Start workflowr project.

Welcome. Most of the activity that I post here is related to the rfordatascience #TidyTuesday weekly social data project. The exercises are certainly not finished products. They demonstrate what could be accomplished in an hour or two after-hours, often from datasets that can be found out in the “wild.” In many cases I’ve used these to explore packages with new features and functions and to facilitate conversations with others in the community via Twitter and Slack.

suppressPackageStartupMessages({
  library(purrr)
  library(dplyr)
  library(knitr)
  library(kableExtra)
  library(stringr)
})
articles <- tibble(file = dir(path = "analysis")) %>%
  filter(str_detect(file, "\\.Rmd")) %>%
  filter(!file %in% c("_site.yml", "about.Rmd", "index.Rmd", "license.Rmd", "rsconnect"))

title_f <- function(file) {
  lines <- readLines(paste0("analysis/", file),
    warn = FALSE
  )
  lines[grepl("^title:", lines)]
}

date_f <- function(file) {
  lines <- readLines(paste0("analysis/", file),
    warn = FALSE
  )
  lines[grepl("^date:", lines)]
}

library_f <- function(file) {
  lines <- readLines(paste0("analysis/", file),
    warn = FALSE
  )
  lines[grepl("^library", lines)]
}
articlesTable <- articles %>% 
  mutate(title = map_chr(file,~ title_f(.))) %>% 
  mutate(dateline = map_chr(file, ~ date_f(.))) %>% 
  mutate(libraries = map(file, ~ library_f(.))) %>%
  tidyr::unnest_longer(col = libraries) %>% 
  mutate(title = str_sub(title, 
                         start = 9L,
                        end = str_length(title) - 1L)) %>% 
  mutate(dateline = str_sub(dateline, 
                            start = 8L,
                            end = str_length(dateline) - 1L)) %>% 
  mutate(libraries = str_squish(str_sub(libraries, 
                             start = str_locate(libraries, "\\(")[,1] + 1,
                             end = str_locate(libraries, "\\)")[,1] - 1 ))) %>% 
  filter(!libraries %in% c("tidyverse","tidytuesdayR","lubridate","here","hrbrthemes", "tweetrmd", "grumanlib")) %>% 
  arrange(desc(lubridate::mdy(dateline)),
          libraries) %>% 
  tidyr::nest(package = libraries) %>% 
  mutate(link = stringr::str_remove(file,".Rmd")) %>% 
  mutate(link = paste0("https://opus1993.github.io/myTidyTuesday/",link,".html"))

articlesTable %>% 
  mutate(title = text_spec(title,
                           format = "html", 
                           link = link)) %>% 
  select(-file, -link) %>% 
  knitr::kable("html", 
               escape = FALSE,
               col.names = c("Title","Date","Packages")) %>%
  kable_styling(bootstrap_options = c("hover", "condensed"),
                full_width = TRUE,
                fixed_thead = TRUE) %>% 
  column_spec(1:3,width = c("10em","10em","60em"))
Title Date Packages
European Flights July 13, 2022 geofacet , patchwork
Survival Analysis June 3, 2022 broom , splines , survival , survminer
Create a Crisp Topographic Map in R May 20, 2022 elevatr, giscoR , marmap , sf , terra
Eurovision Grand Finale Rankings May 17, 2022 cowplot
Supreme Court Pictogram April 18, 2022 ggimage, ggiraph, rvest
R Package Vignette Counts March 14, 2022 poissonreg, tidymodels, treemapify
Plotting NHL Stats February 23, 2022 cowplot, hockeyR, sportyR
Board Games January 28, 2022 finetune , SHAPforxgboost, textrecipes , tidymodels , tidytext , vip
Chocolate bar ratings January 17, 2022 poissonreg , textrecipes, tidymodels , tidytext
GeomTextPath December 26, 2021 geomtextpath , palmerpenguins
National Bureau of Economic Research working papers September 30, 2021 extrafont , finetune , ggraph , igraph , patchwork , textrecipes, themis , tidygraph , tidylo , tidymodels , tidytext , treemapify
Billboard Top 100 September 15, 2021 ggtext , tidymodels
FreddieMac House Prices September 13, 2021 geofacet , gganimate
Sliced Season 1 Finale: SBA Loan Defaults August 17, 2021 bestNormalize, catboost , discrim , embed , finetune , ggforce , ggthemes , probably , themis , tidymodels , treemapify , treesnip
Sliced Austin Home Value Classification August 10, 2021 baguette , finetune , patchwork , textrecipes, themis , tidylo , tidymodels , tidytext , vip
Sliced Pet Shelter Adoptions August 3, 2021 baguette , DALEXtra , finetune , textrecipes, themis , tidylo , tidymodels , tidytext , vip
Sliced Baseball Home Runs July 27, 2021 baguette , DALEXtra , finetune , themis , tidymodels, vip
Sliced Spotify Track Popularity July 20, 2021 baguette , corrr , DALEXtra , finetune , SHAPforxgboost, textrecipes , themis , tidymodels , vip
Sliced Bank Account Churn July 13, 2021 baguette , catboost , finetune , themis , tidymodels, treesnip
Sliced NYC Airbnb June 29, 2021 baguette , catboost , finetune , rlang , stacks , textrecipes, themis , tidymodels , tidytext , treesnip
Sliced Australia Weather June 22, 2021 finetune , patchwork , stacks , textrecipes, themis , tidycensus , tidymodels , treesnip
US Broadband Access May 5, 2021 patchwork , sf , tidycensus
US Post Offices April 13, 2021 finetune , gganimate , ggthemes , historydata, textrecipes, themis , tidymodels
UN Votes March 24, 2021 countrycode, embed , extrafont , tidymodels
Video Games and Sliced March 16, 2021 systemfonts, tidymodels
Animating a geographic introduction March 7, 2021 gganimate, ggtext , glue
SuperBowl Commercials March 2, 2021 tidymodels
Kenya Census January 19, 2021 cartogram , rKenyaCensus, sf , spdep , systemfonts , waffle
Tate Art Collection January 12, 2021 countrycode, textrecipes, tidymodels , tidytext , treemapify , vip
USDA NASS Stocks to Use January 7, 2021 ggrepel, Quandl , rnassqs
Chicago Traffic Injuries January 5, 2021 baguette , RSocrata , themis , tidymodels
Toronto Homeless Shelters December 1, 2020 tidymodels, treemap
Washington State Trails November 27, 2020 fontawesome, ggridges , gt , htmltools , rvest
US Poverty November 11, 2020 cartogram , sf , tidycensus, tigris , tmap
Historical Phone Usage November 10, 2020 ggrepel, ggtext , naniar , scales , visdat , WDI
Canadian Wind Turbines October 27, 2020 cowplot , ggtext , kableExtra , naniar , osmdata , rnaturalearth, sf , stringr , visdat
Beer Awards October 20, 2020 broom , cowplot , geofacet , ggwordcloud, kableExtra , purrr , tidylo , tidytext
Datasaurus October 14, 2020 broom , gridExtra , purrr , tidymodels
Corn Production October 9, 2020 blscrapeR, httr , readxl , rnassqs
NCAA Womens Tournament October 7, 2020 splines , tidymodels
Hops September 24, 2020 blscrapeR, paletteer, rnassqs
Kids Spending September 22, 2020 broom , geojsonio, ggtext , rgeos , showtext
Himalayan Climbers September 22, 2020 ebbr , gt , themis , tidymodels
Friends September 8, 2020 ggbump , ggdist , glue , ragg , showtext, tidylo , tidytext
The Last Airbender August 11, 2020 scales , showtext , textfeatures, textrecipes , themis , tidylo , tidymodels , tidytext , tvthemes , vip
Astronaut Missions July 15, 2020 baguette , tidymodels
Coffee July 7, 2020 ggraph , ggridges, igraph , tidytext, widyr
Animal Crossing Sentiment Analysis May 5, 2020 stm , textrecipes, tidymodels , tidyr , tidytext , vip
GDPR Fines April 21, 2020 ggbeeswarm , ggtext , rnaturalearth, rvest , sf , tidymodels
Tour De France April 7, 2020 broom , ggtext , paletteer, patchwork, rvest , survival
Beer Production March 31, 2020 GGally , gganimate , gghighlight , maps , sf , shinymetrics, tidymetrics , tidymodels , transformr
Brain Injury March 24, 2020 gganimate , gifski , tidymodels, vip
The Office for Tidy Tuesday March 17, 2020 tidymodels, tidytext , vip
College Tuition and Diversity March 10, 2020 tidymodels
NFL attendance February 4, 2020 tidymodels
Student Debt November 26, 2019 cowplot , dygraphs , forcats , gghighlight, ggiraph , ggrepel , stats , stringr , viridis

I have attempted to make notes of my sources for code and content. Please be sure to reach out, acknowledge, and cite their contributions directly.


sessionInfo()
R version 4.1.3 (2022-03-10)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 22000)

Matrix products: default

locale:
[1] LC_COLLATE=English_United States.1252 
[2] LC_CTYPE=English_United States.1252   
[3] LC_MONETARY=English_United States.1252
[4] LC_NUMERIC=C                          
[5] LC_TIME=English_United States.1252    

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] stringr_1.4.0    kableExtra_1.3.4 knitr_1.39       dplyr_1.0.9     
[5] purrr_0.3.4      workflowr_1.7.0 

loaded via a namespace (and not attached):
 [1] styler_1.7.0      tidyselect_1.1.2  xfun_0.31         bslib_0.3.1      
 [5] colorspace_2.0-3  vctrs_0.4.1       generics_0.1.3    viridisLite_0.4.0
 [9] htmltools_0.5.2   yaml_2.3.5        utf8_1.2.2        rlang_1.0.3      
[13] R.oo_1.25.0       jquerylib_0.1.4   later_1.3.0       pillar_1.7.0     
[17] glue_1.6.2        DBI_1.1.3         R.utils_2.12.0    lifecycle_1.0.1  
[21] R.cache_0.15.0    munsell_0.5.0     rvest_1.0.2       R.methodsS3_1.8.2
[25] evaluate_0.15     callr_3.7.0       fastmap_1.1.0     httpuv_1.6.5     
[29] ps_1.7.1          fansi_1.0.3       Rcpp_1.0.9        scales_1.2.0     
[33] promises_1.2.0.1  webshot_0.5.3     jsonlite_1.8.0    systemfonts_1.0.4
[37] fs_1.5.2          digest_0.6.29     stringi_1.7.8     processx_3.7.0   
[41] getPass_0.2-2     rprojroot_2.0.3   cli_3.3.0         tools_4.1.3      
[45] magrittr_2.0.3    sass_0.4.1        tibble_3.1.7      tidyr_1.2.0      
[49] crayon_1.5.1      whisker_0.4       pkgconfig_2.0.3   ellipsis_0.3.2   
[53] xml2_1.3.3        lubridate_1.8.0   svglite_2.1.0     assertthat_0.2.1 
[57] rmarkdown_2.14    httr_1.4.3        rstudioapi_0.13   R6_2.5.1         
[61] git2r_0.30.1      compiler_4.1.3