Learn R Programming

mintyr

mintyr is an R package that provides fresh and efficient solutions for data processing, with a particular emphasis on animal breeding data. The package name reflects its core philosophy - delivering clean, fresh, and straightforward approaches to data manipulation. The package originated from the challenges encountered in handling multi-breed and multi-trait data in genomic selection, where nested data structures (via dplyr::group_nest()) proved to be remarkably effective for model iteration, especially when combined with dplyr::mutate and purrr::map() operations. While the tidyverse ecosystem offers powerful tools, to enhance performance while maintaining code clarity, mintyr has been implemented primarily using data.table and base R functions. Although initially designed for processing genomic selection phenotype data, mintyr has evolved to include a comprehensive collection of utility functions that streamline common data processing tasks.

Acknowledgments

Special thanks to AI assistance, particularly ChatGPT and Claude, for helping transform the initial concepts and inspirations for the mintyr package into reality. Their contribution has been invaluable in refining ideas, improving code structure, and crafting documentation.

Installation

You can install the development version from GitHub with:

# install.packages("pak")
pak::pak("tony2015116/mintyr")

Copy Link

Version

Install

install.packages('mintyr')

Monthly Downloads

253

Version

0.1.0

License

MIT + file LICENSE

Maintainer

Guo Meng

Last Published

December 13th, 2024

Functions in mintyr (0.1.0)

import_xlsx

Import Data from XLSX Files with Advanced Handling
nedaps

Update Nedap Dataset with Current Date
r2p_nest

Row to Pair Nested Transformation
mintyr_examples

List all available example files in mintyr package
top_perc

Select Top Percentage of Data and Statistical Summarization
nedap

nedap
w2l_nest

Reshape Wide Data to Long Format and Nest by Specified Columns
nest_cv

Apply Cross-Validation to Nested Data
mintyr_example

Get path to mintyr examples
split_cv

Cross-Validation Split Generator
w2l_split

Reshape Wide Data to Long Format and Split into List
convert_nest

Convert Nested Columns Between data.frame and data.table
export_list

Export List with Advanced Directory Management
c2p_nest

Column to Pair Nested Transformation
format_digits

Format Numeric Columns with Specified Digits
get_path_segment

Extract Specific Segments from File Paths
fire

fire
export_nest

Export Nested Data with Advanced Grouping and Flexible Handling
fires

Update Fire Dataset with Current Date
import_csv

Flexible CSV/TXT File Import with Multiple Backend Support
get_filename

Extract Filenames from File Paths