messy

R package to make a data frame messy and untidy.

https://github.com/nrennie/messy

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

r r-package teaching
Last synced: 6 months ago · JSON representation

Repository

R package to make a data frame messy and untidy.

Basic Info
Statistics
  • Stars: 150
  • Watchers: 5
  • Forks: 9
  • Open Issues: 2
  • Releases: 1
Topics
r r-package teaching
Created over 2 years ago · Last pushed 6 months ago
Metadata Files
Readme Changelog License

README.md

R-CMD-check CRAN_Status_Badge <!-- badges: end -->

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

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

All Time
  • Total Commits: 63
  • Total Committers: 4
  • Avg Commits per committer: 15.75
  • Development Distribution Score (DDS): 0.111
Past Year
  • Commits: 37
  • Committers: 4
  • Avg Commits per committer: 9.25
  • Development Distribution Score (DDS): 0.189
Top Committers
Name Email 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
enhancement (2) bug (1)
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
  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
Rankings
Dependent packages count: 5.5%
Average: 5.6%
Dependent repos count: 5.8%
Last synced: 6 months ago
cran.r-project.org: messy

Create Messy Data from Clean Data Frames

  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 275 Last month
Rankings
Dependent packages count: 27.6%
Dependent repos count: 34.0%
Average: 49.5%
Downloads: 86.9%
Maintainers (1)
Last synced: 6 months ago

Dependencies

.github/workflows/R-CMD-check.yaml actions
  • 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
.github/workflows/lint.yaml actions
  • actions/checkout v2 composite
  • r-lib/actions/setup-r v2 composite
  • r-lib/actions/setup-r-dependencies v2 composite
DESCRIPTION cran
  • R >= 4.1 depends
  • dplyr * imports
  • rlang * imports
  • stringr * imports
  • testthat >= 3.0.0 suggests