https://github.com/asjadnaqvi/stata-tidytuesday
A Stata package for fetching Tidy Tuesday meta data and files
Science Score: 13.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
○.zenodo.json file
-
○DOI references
-
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (15.0%) to scientific vocabulary
Keywords
Repository
A Stata package for fetching Tidy Tuesday meta data and files
Basic Info
Statistics
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
- Releases: 1
Topics
Metadata Files
README.md
Installation | Examples | Feedback | Change log
tidytuesday v1.2
(13 May 2025)
A Stata package for fetching meta information and files from the R TidyTuesday repository (see also for citation guidelines and license information).
The main purpose of this package is to give quick access to interesting datasets for visualizations from the #TidyTuesday challenge in Stata.
:triangularflagon_post: The package requires internet since it is actively parsing stable GitHub links for information. Links and paths can also break so please report them.
Installation
The package can be installed via SSC or GitHub. The GitHub version, might be more recent due to bug fixes, feature updates etc, and may contain syntax improvements and changes in default values. See version numbers below. Eventually the GitHub version is published on SSC.
SSC (v1.0):
stata
ssc install tidytuesday, replace
Or it can be installed from GitHub (v1.2):
stata
net install tidytuesday, from("https://raw.githubusercontent.com/asjadnaqvi/stata-tidytuesday/main/installation/") replace
Examples
Load the meta data for a certain year:
stata
tidytuesday, year(2024)
which will display an output like this:
The meta list provides a data [Load] link next to each week's date. Additional links are also provided to take users directly to the TidyTuesday repository and other data sources.
Data for a specific week can be downloaded as follows:
stata
tidytuesday get, year(2023) week(48)
Note that each weekly challenge can contain multiple files. All of these files will be downloaded. For example, the code above is for Dr. Who episodes and fetches three files. These are downloaded, parsed, cleaned, and saved separately in the backend. It is advisable to read the challenge descriptions to get more information on how the files are linked, what the unique identifiers are, etc. Note that data for some files might need further cleaning, e.g. converting string to numeric variables or formatting dates, etc.
Please also remember to set a directory path before downloading the files.
:triangularflagon_post: Data for some weeks might fail to load due to incompatible data structure or other data formatting issues. In this case, please visit the repository and deal with the files directly.
Feedback
Please open an issue to report errors, feature enhancements, and/or other requests.
Change log
v1.2 (13 May 2025) - Markdown parsing is now mostly through regular expressions to better handle changes to markdown files.
v1.1 (10 Apr 2025) - Fixes to markdown parsing.
v1.0 (16 Feb 2025) - Public release.
Owner
- Name: Asjad Naqvi
- Login: asjadnaqvi
- Kind: user
- Location: Vienna
- Company: WIFO
- Website: https://asjadnaqvi.github.io/
- Twitter: AsjadNaqvi
- Repositories: 52
- Profile: https://github.com/asjadnaqvi
Vienna, Austria
GitHub Events
Total
- Release event: 2
- Push event: 19
- Create event: 5
Last Year
- Release event: 2
- Push event: 19
- Create event: 5
Issues and Pull Requests
Last synced: 12 months ago
All Time
- Total issues: 0
- Total pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Total issue authors: 0
- Total pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 0
- Pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 0
- Pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0