The recodeSNP
R package is designed to facilitate the recoding of SNP (Single Nucleotide Polymorphism) data based on specified ploidy.
# Install the devtools package if not already installed
if (!requireNamespace("devtools", quietly = TRUE)) {
install.packages("devtools")
}
# Install recodeSNP from GitHub
devtools::install_github("yourjeewan/recodeSNP")