Skip to content

mintyr

0.2.0Package record

Grouped and Nested Data Pipelines Built on 'data.table'

0packages depend
3.5Kdownloads / year
86.4%test coverage
13/13flavors OK

Overview

About

A toolkit for grouped and nested data pipelines built on 'data.table': import many Excel / CSV files (including multi-row headers) into one table, reshape and nest data by trait and group, run reproducible (stratified) k-fold cross-validation inside every group, summarise groups with report-ready descriptive statistics, and write each piece back to its own file or sheet. Developed for animal breeding, where it prepares phenotypic files for 'ASReml-R', 'HIBLUP' or 'DMU', but useful for any multi-group, multi-variable analysis.

Changes in 0.2.0

New features

  • New desc_stats(): descriptive statistics by group (presets as in rstatix::get_summary_stats(), plus cv, skew, kurt, ci_low / ci_high), an optional total row (counts add up, statistics use all records), min_n, per-variable digits, labels, report-ready text via fmt = "{mean} ± {sd}" and a wide report layout (shape = "wide"). Computed column by column with data.table's grouped functions: about a second for a million records in 20,000 groups.
  • import_xlsx() reads multi-row headers (header_rows, header_sep), using the merged cells stored in .xlsx files (header_fill), accepts sheet names in sheet, and can skip unreadable files / sheets (on_error = "warn").
Show all changes in 0.2.0Hide the rest of the changes in 0.2.0

Breaking changes

  • top_perc() now computes its statistics with the same engine as desc_stats(): columns are lower case (n, min, max, mean, median, sd, se, cv), the CV is NA unless all selected values are positive, and a new stats argument chooses the statistics.
  • split_cv() and nest_cv() no longer depend on 'rsample'. Folds are built with base R / 'data.table'. The splits column (rsample rsplit objects) is replaced by train_idx / validate_idx (row indices); ... is no longer forwarded. New arguments seed (reproducible folds without disturbing the RNG stream), materialize (FALSE keeps only indices) and out_type ("df" returns train / validate as plain data.frames, e.g. for ASReml-R).
  • export_nest() now returns the written file paths (invisibly) instead of a count, consistent with export_list() and export_xlsx().
  • export_nest() stops when the grouping columns do not identify rows uniquely (files would overwrite each other) or name unknown columns.
  • export_nest() / export_list() write missing values as NA and do not quote fields by default (na, quote and ... are passed to fwrite()).
  • r2p_nest() gains id; it stops instead of silently returning counts when id + names_from do not identify rows uniquely.
  • get_path_info(rm_path = FALSE) keeps the root (/, C:/, //).

Unified argument names

The old argument names have been removed; code written for 0.1.x must be

updated (calls with old names now fail with "unused argument").

| Function(s) | Old | New |

|---|---|---|

| nest_cv(), split_cv(), export_nest(), export_list() | nest_dt, split_dt | data |

| w2l_nest(), w2l_split() | cols2l | cols |

| c2p_nest() | cols2bind | cols |

| r2p_nest() | rows2bind, by | names_from, cols |

| export_nest() | nest_cols, group_cols | cols, by |

| top_perc() | trait | cols |

| w2l_nest(), w2l_split(), c2p_nest(), r2p_nest() | nest_type, split_type | out_type |

| export_nest(), export_list() | export_path | path |

| get_path_info() | paths | path |

| import_csv(), import_xlsx() | rbind | combine |

| import_csv() | rbind_label | file_col |

| import_xlsx() | show_excel_name, show_sheet_name (logical) | file_col, sheet_col (column name, NULL to omit) |

Bug fixes

  • Fixed a bug in export_xlsx().
  • w2l_nest() / w2l_split() no longer turn the caller's data.frame into a data.table by reference.
  • w2l_split(sep = ) works on every data.table version.
  • split_cv() / export_list() reject a single data.frame.
  • import_xlsx(): tables returned by parallel workers get a valid self-reference; duplicated base names are warned about and made unique.
  • import_csv(): dots in directory names are no longer taken for an extension.
  • export_list() / export_nest() sanitise path components.
  • export_xlsx() rejects .xls/.xlsm paths and sheets above Excel's row limit.
  • top_perc() keeps groups too small to select any record (N = 0, with a warning); format_digits() validates digits before using it.

Other

  • Regression tests for all functions.

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 1.9 min · r-oldrel-windows-x86_64
Status changes
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK13 OK2026-06-09
  • ERROR12 OK, 1 ERROR2026-06-07
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 0.2.0
READMEYes · 747 wordsVignettesYes · 6 · dynamicNEWSYes · 100% structured · mentions 0.2.0Citation fileNoWebsiteYes · pkgdown
Help pages
17
Examples that run
100%17 run in a plain check
Exported functions with examples
100%
Documented parameters
94%
Return-value docs
100%
Help pages citing references
0%

Downloads

3.5K
CRAN downloads in the past year
Rank #9,855 · ~10/day · ~294/mo
Daily download trend is not available in this view yet.
44530 days
1K90 days
3.5K1 year
Compare downloads with other packages →
Also on96 r2u6 autocran

Repository

0Stars
0Forks
1Open issues
0Open PRs
4Releases
56Commits
1Commit identities
genomic-selectionasreml-r
56 commits · Last activity 2026-10-05 · Discussions: 1 post
Responsiveness
How these are sampled
PRs merged (all time)
not measured
Median days to close, 50 most recently updated closed issues
2
Median days to close, 50 most recently updated closed PRs
not measured

Releases over time

2025-10-13 · 22026-07-07 · 4
PracticesBeta

8 development-tooling and community-health practices detected across 4 families in the upstream repository

Checks run against github.com/tony2015116/mintyr on 2026-10-18.

Continuous integration (2)
GitHub ActionsR CMD check workflow

The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel

Docs source (3)
pkgdown

GitHub Pages site last deployed 2026-10-05 · The repository has a site deploy workflow

pkgdown site last built 2026-10-05

CRAN release process (2)
cran-comments.mdCRAN-SUBMISSION
Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v3 (2026-09-26)

Dependencies

Declared dependencies
6 external dependencies (excludes base and recommended)

Installing mintyr adds 21 packages (10 with compiled code, 13 MB of source tarballs). Heaviest: data.table 5.7 MB, readxl 2.1 MB, vctrs 1.0 MB.

Depends (1)
R >= 4.1.0
Imports (6)
data.tableparallelreadxlstatsutilswritexl
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Datasets

People & History

People (1)
Author, Maintainer since 0.1.0 (2024), Copyright holder
Releases (5)

Pick two releases to compare their code metrics.

  • 0.2.0Latest
    record
    2026-10-05 · current release · diff ↗ ·
    added 1 export
    desc_stats
  • 0.1.3
    record
    2026-06-20 · diff ↗ ·
    removed 3 exports
    convert_nest, get_filename, get_path_segment
    added 2 exports
    export_xlsx, get_path_info
  • R
    R 4.6.0 released · 2026-04-24
  • 0.1.2
    record
    2025-10-25 · diff ↗
  • 0.1.1
    record
    2025-10-13 · diff ↗ ·
    removed 2 exports
    fires, nedaps
  • R
    R 4.5.0 released · 2025-04-11
  • 0.1.0
    record
    2024-12-13
  • R
    R 4.4.0 released · 2024-04-24

Package metadata

First published
2024-12-13
Total releases
5 / 2 yrs
License
MIT + file LICENSE OSI
Minimum R
≥ 4.1.0
Download size
552 KB

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("mintyr")
Guo Meng, & Guo Meng. (2026). mintyr: Grouped and Nested Data Pipelines Built on 'data.table' (Version 0.2.0) [Computer software]. https://doi.org/10.32614/CRAN.package.mintyr

This package has no citation file, so citation() returns this entry built from DESCRIPTION.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for mintyr version 0.2.0 [Data set]. HJJB, LLC. Data release v2026-10-21. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-21, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy