Skip to content

Latest commit

 

History

History
52 lines (36 loc) · 3.09 KB

readme.md

File metadata and controls

52 lines (36 loc) · 3.09 KB

David Robinson's TidyTuesday Functions

This week we're seeing how David Robinson has explored TidyTuesday data in his YouTube screencasts! Thanks to Bryan Shalloway for the suggestion, the {funspotr} package, and the blog posts about how to use funspotr (including this one about making network graphs with the data).

The goal of funspotr (R function spotter) is to make it easy to identify which R functions and packages are used in files and projects. It was initially written to create reference tables of the functions and packages used in a few popular github repositories.

What are David's most-used functions? Can you find relationships between functions used and the variable types (using the {ttmeta} package)? How does his function graph compare to your own?

The Data

# Option 1: tidytuesdayR package 
## install.packages("tidytuesdayR")

tuesdata <- tidytuesdayR::tt_load('2024-07-09')
## OR
tuesdata <- tidytuesdayR::tt_load(2024, week = 28)

drob_funs <- tuesdata$drob_funs

# Option 2: Read directly from GitHub

drob_funs <- readr::read_csv('https://raw.githubusercontent.com/rfordatascience/tidytuesday/master/data/2024/2024-07-09/drob_funs.csv')

How to Participate

  • Explore the data, watching out for interesting relationships. We would like to emphasize that you should not draw conclusions about causation in the data. There are various moderating variables that affect all data, many of which might not have been captured in these datasets. As such, our suggestion is to use the data provided to practice your data tidying and plotting techniques, and to consider for yourself what nuances might underlie these relationships.
  • Create a visualization, a model, a shiny app, or some other piece of data-science-related output, using R or another programming language.
  • Share your output and the code used to generate it on social media with the #TidyTuesday hashtag.

Data Dictionary

drob_funs.csv

variable class description
funs character Function names
pkgs character Package names
in_multiple_pkgs logical Boolean indicating whether this function is in multiple packages
contents character File in which the function is used
urls character URL to download the file in which the function is used

Cleaning Script

# Clean data provided by Bryan Shalloway (@brshallo on GitHub)!
drob_funs <- readr::read_csv("https://raw.githubusercontent.com/brshallo/funspotr-examples/main/data/funs/drob-tidy-tuesdays-funs-20220114.csv")