Last updated: 2022-11-19

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 cf94478. 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/2022_11_01.png
    Ignored:    data/2022_11_18.png
    Ignored:    data/CNHI_Excel_Chart.xlsx
    Ignored:    data/Chicago.rds
    Ignored:    data/CommunityTreemap.jpeg
    Ignored:    data/Community_Roles.jpeg
    Ignored:    data/ELL.zip
    Ignored:    data/FM_service_contour_current.zip
    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/application_id.feather
    Ignored:    data/df.rds
    Ignored:    data/fit_cohesion.rds
    Ignored:    data/fit_grammar.rds
    Ignored:    data/fit_phraseology.rds
    Ignored:    data/fit_syntax.rds
    Ignored:    data/fit_vocabulary.rds
    Ignored:    data/grainstocks.rds
    Ignored:    data/hike_data.rds
    Ignored:    data/lm_res.rds
    Ignored:    data/raw_contour.feather
    Ignored:    data/raw_weather.RData
    Ignored:    data/sample_submission.csv
    Ignored:    data/submission.csv
    Ignored:    data/test.csv
    Ignored:    data/train.csv
    Ignored:    data/us_states.rds
    Ignored:    data/us_states_hexgrid.geojson
    Ignored:    data/weatherstats_toronto_daily.csv

Untracked files:
    Untracked:  analysis/2022_09_01_kaggle_tabular_playground.qmd
    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:  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/EnglishLanguageLearning.Rmd
    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 1554d03 opus1993 2022-11-02 Build site.
html 4cf6d44 opus1993 2022-11-02 Build site.
html 7ade547 opus1993 2022-10-15 Build site.
Rmd dfea296 opus1993 2022-10-15 add Kaggle ESL essays
html 8f06b8c opus1993 2022-08-03 Build site.
Rmd 67ac42a opus1993 2022-08-03 remove functions DT table
html 1259ff4 opus1993 2022-08-02 Build site.
Rmd c126c0e opus1993 2022-08-01 add GT images
html 02177ed opus1993 2022-07-28 Build site.
Rmd a41e7b6 opus1993 2022-07-28 add functions table
html 5ec52aa opus1993 2022-07-13 Build site.
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
Public Radio Stations November 18, 2022 sf , tigris
Horror Movies November 1, 2022 ggdist , ggimage, rtweet
Kaggle Feedback Prize - English Language Learning October 15, 2022 brulee , text2vec , textrecipes, tidymodels , tidytext
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.2.2 (2022-10-31 ucrt)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 22621)

Matrix products: default

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

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

other attached packages:
[1] stringr_1.4.1    kableExtra_1.3.4 knitr_1.40       dplyr_1.0.10    
[5] purrr_0.3.5      workflowr_1.7.0 

loaded via a namespace (and not attached):
 [1] styler_1.8.0      tidyselect_1.2.0  xfun_0.34         bslib_0.4.1      
 [5] colorspace_2.0-3  vctrs_0.5.0       generics_0.1.3    viridisLite_0.4.1
 [9] htmltools_0.5.3   yaml_2.3.6        utf8_1.2.2        rlang_1.0.6      
[13] R.oo_1.25.0       jquerylib_0.1.4   later_1.3.0       pillar_1.8.1     
[17] withr_2.5.0       glue_1.6.2        DBI_1.1.3         R.utils_2.12.1   
[21] lifecycle_1.0.3   R.cache_0.16.0    munsell_0.5.0     rvest_1.0.3      
[25] R.methodsS3_1.8.2 evaluate_0.18     callr_3.7.3       fastmap_1.1.0    
[29] httpuv_1.6.6      ps_1.7.2          fansi_1.0.3       Rcpp_1.0.9       
[33] promises_1.2.0.1  scales_1.2.1      cachem_1.0.6      webshot_0.5.4    
[37] jsonlite_1.8.3    systemfonts_1.0.4 fs_1.5.2          digest_0.6.30    
[41] stringi_1.7.8     processx_3.8.0    getPass_0.2-2     rprojroot_2.0.3  
[45] cli_3.4.1         tools_4.2.2       magrittr_2.0.3    sass_0.4.2       
[49] tibble_3.1.8      tidyr_1.2.1       whisker_0.4       pkgconfig_2.0.3  
[53] ellipsis_0.3.2    xml2_1.3.3        timechange_0.1.1  lubridate_1.9.0  
[57] svglite_2.1.0     assertthat_0.2.1  rmarkdown_2.17    httr_1.4.4       
[61] rstudioapi_0.14   R6_2.5.1          git2r_0.30.1      compiler_4.2.2