Last updated: 2021-10-07

Checks: 7 0

Knit directory: myTidyTuesday/

This reproducible R Markdown analysis was created with workflowr (version 1.6.2). 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 f0f0e24. 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:    catboost_info/
    Ignored:    data/2021-09-08/
    Ignored:    data/CNHI_Excel_Chart.xlsx
    Ignored:    data/CommunityTreemap.jpeg
    Ignored:    data/Community_Roles.jpeg
    Ignored:    data/YammerDigitalDataScienceMembership.xlsx
    Ignored:    data/acs_poverty.rds
    Ignored:    data/fmhpi.rds
    Ignored:    data/grainstocks.rds
    Ignored:    data/hike_data.rds
    Ignored:    data/nber_rs.rmd
    Ignored:    data/netflixTitles.rmd
    Ignored:    data/netflixTitles2.rds
    Ignored:    data/us_states.rds
    Ignored:    data/us_states_hexgrid.geojson
    Ignored:    data/weatherstats_toronto_daily.csv

Untracked files:
    Untracked:  analysis/CHN_1_sp.rds
    Untracked:  analysis/sample data for r test.xlsx
    Untracked:  code/YammerReach.R
    Untracked:  code/work list batch targets.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 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 to my TidyTuesday website collection. Most of the activity here is related to the rfordatascience #TidyTuesday weekly social data project. The exercises here are certainly not finished products. They demonstrate what could be accomplished in an hour or two after-hours 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.

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")) %>%
  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
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
US Broadband Access May 5, 2021 patchwork , sf , tidycensus
Netflix Titles NLP April 20, 2021 discrim , finetune , stacks , textrecipes , themis , tidymodels , tidyposterior, tidytext , workflowsets
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
Survival Analysis December 4, 2020 broom , splines , survival , survminer
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 made 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.1 (2021-08-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.36       dplyr_1.0.7     
[5] purrr_0.3.4      workflowr_1.6.2 

loaded via a namespace (and not attached):
 [1] styler_1.6.2      tidyselect_1.1.1  xfun_0.26         bslib_0.3.0      
 [5] colorspace_2.0-2  vctrs_0.3.8       generics_0.1.0    htmltools_0.5.2  
 [9] viridisLite_0.4.0 yaml_2.2.1        utf8_1.2.2        rlang_0.4.11     
[13] R.oo_1.24.0       jquerylib_0.1.4   later_1.3.0       pillar_1.6.3     
[17] R.utils_2.11.0    glue_1.4.2        DBI_1.1.1         lifecycle_1.0.1  
[21] R.cache_0.15.0    munsell_0.5.0     R.methodsS3_1.8.1 rvest_1.0.1      
[25] evaluate_0.14     fastmap_1.1.0     httpuv_1.6.3      fansi_0.5.0      
[29] Rcpp_1.0.7        promises_1.2.0.1  scales_1.1.1      backports_1.2.1  
[33] webshot_0.5.2     jsonlite_1.7.2    fs_1.5.0          systemfonts_1.0.2
[37] digest_0.6.28     stringi_1.7.5     rprojroot_2.0.2   tools_4.1.1      
[41] magrittr_2.0.1    sass_0.4.0        tibble_3.1.4      tidyr_1.1.4      
[45] crayon_1.4.1      whisker_0.4       pkgconfig_2.0.3   ellipsis_0.3.2   
[49] xml2_1.3.2        lubridate_1.7.10  assertthat_0.2.1  rmarkdown_2.11   
[53] svglite_2.0.0     httr_1.4.2        rstudioapi_0.13   R6_2.5.1         
[57] git2r_0.28.0      compiler_4.1.1