Science Score: 36.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
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
✓Committers with academic emails
1 of 4 committers (25.0%) from academic institutions -
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (10.9%) to scientific vocabulary
Keywords
Repository
R package to make a data frame messy and untidy.
Basic Info
- Host: GitHub
- Owner: nrennie
- License: cc-by-4.0
- Language: R
- Default Branch: main
- Homepage: https://nrennie.rbind.io/messy/
- Size: 1.58 MB
Statistics
- Stars: 150
- Watchers: 5
- Forks: 9
- Open Issues: 2
- Releases: 1
Topics
Metadata Files
README.md
messy 
When teaching examples using R, instructors often using nice datasets - but these aren't very realistic, and aren't what students will later encounter in the real world. Real datasets have typos, missing values encoded in strange ways, and weird spaces. The {messy} R package takes a clean dataset, and randomly adds these things in - giving students the opportunity to practice their data cleaning and wrangling skills without having to change all of your examples.
Read the preprint of the article associated with this package at nrennie.rbind.io/making-messy-data, and see the article source at github.com/nrennie/making-messy-data. The article gives more in-depth explanations of the motivation behind the package, and ideas of how to use it in teaching.
Installation
Install from CRAN using:
r
install.packages("messy")
Install development version from GitHub using:
r
remotes::install_github("nrennie/messy")
Usage
For more in-depth usage instructions, see the package documentation at nrennie.rbind.io/messy which has examples of each function.
The simplest way to use the {messy} package is applying the messy() function:
r
set.seed(1234)
messy(ToothGrowth[1:10,])
r
len supp dose
1 4.2 VC 0.5
2 11.5 <NA> <NA>
3 7.3 VC 0.5
4 5.8 (VC 0.5
5 6.4 VC <NA>
6 10 VC 0.5
7 11.2 <NA> 0.5
8 11.2 VC 0.5
9 5.2 VC 0.5
10 7 VC 0.5
You can vary the amount of messiness for each function, and chain together different functions to create customised messy data:
r
set.seed(1234)
ToothGrowth[1:10,] |>
make_missing(cols = "supp", missing = " ") |>
make_missing(cols = c("len", "dose"), missing = c(NA, 999)) |>
add_whitespace(cols = "supp", messiness = 0.5) |>
add_special_chars(cols = "supp")
r
len supp dose
1 4.2 VC 0.5
2 11.5 VC NA
3 7.3 VC 0.5
4 5.8 *VC 0.5
5 6.4 VC 0.5
6 10.0 VC 0.5
7 11.2 0.5
8 11.2 V#C NA
9 5.2 !VC 0.5
10 7.0 VC* 0.5
Owner
- Name: Nicola Rennie
- Login: nrennie
- Kind: user
- Location: United Kingdom
- Company: Jumping Rivers
- Website: https://nrennie.rbind.io/
- Twitter: nrennie35
- Repositories: 16
- Profile: https://github.com/nrennie
Data scientist. PhD in Statistics and Operational Research. Generative artist. Runner of endurance races. Neat freak. She/her.
GitHub Events
Total
- Create event: 5
- Release event: 1
- Issues event: 16
- Watch event: 138
- Delete event: 3
- Issue comment event: 11
- Push event: 32
- Pull request review event: 5
- Pull request review comment event: 3
- Pull request event: 16
- Fork event: 8
Last Year
- Create event: 5
- Release event: 1
- Issues event: 16
- Watch event: 138
- Delete event: 3
- Issue comment event: 11
- Push event: 32
- Pull request review event: 5
- Pull request review comment event: 3
- Pull request event: 16
- Fork event: 8
Committers
Last synced: 9 months ago
Top Committers
| Name | Commits | |
|---|---|---|
| nrennie | n****5@g****m | 56 |
| jack-davison | d****d@g****m | 4 |
| Athanasia Monika Mowinckel | a****l@p****o | 2 |
| Philip-Leftwich | p****h@g****m | 1 |
Committer Domains (Top 20 + Academic)
Issues and Pull Requests
Last synced: 6 months ago
All Time
- Total issues: 11
- Total pull requests: 8
- Average time to close issues: 5 days
- Average time to close pull requests: 7 days
- Total issue authors: 6
- Total pull request authors: 5
- Average comments per issue: 0.91
- Average comments per pull request: 0.25
- Merged pull requests: 5
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 11
- Pull requests: 8
- Average time to close issues: 5 days
- Average time to close pull requests: 7 days
- Issue authors: 6
- Pull request authors: 5
- Average comments per issue: 0.91
- Average comments per pull request: 0.25
- Merged pull requests: 5
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- nrennie (4)
- msgoussi (1)
- barryrowlingson (1)
- luisDVA (1)
- jrosell (1)
- jack-davison (1)
Pull Request Authors
- nrennie (5)
- jack-davison (4)
- luisDVA (2)
- drmowinckels (2)
- Philip-Leftwich (2)
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 2
-
Total downloads:
- cran 275 last-month
-
Total dependent packages: 0
(may contain duplicates) -
Total dependent repositories: 0
(may contain duplicates) - Total versions: 2
- Total maintainers: 1
proxy.golang.org: github.com/nrennie/messy
- Documentation: https://pkg.go.dev/github.com/nrennie/messy#section-documentation
- License: cc-by-4.0
-
Latest release: v0.1.0
published about 1 year ago
Rankings
cran.r-project.org: messy
Create Messy Data from Clean Data Frames
- Homepage: https://nrennie.rbind.io/messy/
- Documentation: http://cran.r-project.org/web/packages/messy/messy.pdf
- License: CC BY 4.0
-
Latest release: 0.1.0
published about 1 year ago
Rankings
Maintainers (1)
Dependencies
- actions/checkout v2 composite
- r-lib/actions/check-r-package v2 composite
- r-lib/actions/setup-r v2 composite
- r-lib/actions/setup-r-dependencies v2 composite
- actions/checkout v2 composite
- r-lib/actions/setup-r v2 composite
- r-lib/actions/setup-r-dependencies v2 composite
- R >= 4.1 depends
- dplyr * imports
- rlang * imports
- stringr * imports
- testthat >= 3.0.0 suggests