Identify the Racial Complex of Native Corns from Mexico

A model that provides researchers with a powerful tool for the classification and study of native corn by aiding in the identification of racial complexes which are fundamental to Mexico's agriculture and culture. This package has been developed based on data collected by "Proyecto Global de Maíces Nativos México", which has conducted exhaustive surveys across the country to document the qualitative and quantitative characteristics of different types of native maize. The trained model uses a robust and diverse dataset, enabling it to achieve an 80% accuracy in classifying maize racial complexes. The characteristics included in the analysis comprise geographic location, grain and cob colors, as well as various physical measurements, such as lengths and widths.


License GitHub R packageversion R-CMD-check

imanr

Identify the Racial Complex of Native Corns from Mexico

Identificador de Maíz Nativo en R

imanr is model that provides researchers with a powerful tool for the classification and study of native corn by aiding in the identification of racial complexes which are fundamental to Mexico’s agriculture and culture.

Installation

# As of today, you can install the development version from GitHub:
# install.packages("devtools")
devtools::install_github("rafa6174/imanr")

Usage

The package is composed of two functions: find_racial_complex() and impute_data().

impute_data() is used to preprocess the data by imputing the missing information by comparing the absent fields with the full information from the “Proyecto Nacional de Maíz Nativo” database and then filling the gaps with adequate data that is computed through a random forests approach. find_racial_complex() is loaded with the machine learning model that computes the classification for the corn sample that is being fed to the function. The function takes only one argument which is a dataframe including qualitative and quantitative characteristics of the native corn.

# test for racial complexes
find_racial_complex(data31)

#> [1] Tropicales tardíos  Dentados tropicales Dentados tropicales Dentados tropicales
#> [5] Dentados tropicales Dentados tropicales Dentados tropicales Dentados tropicales
#> [9] Dentados tropicales Dentados tropicales Dentados tropicales Dentados tropicales
#> [13] Dentados tropicales Dentados tropicales Dentados tropicales Dentados tropicales
#> [17] Dentados tropicales Dentados tropicales Tropicales tardíos  Dentados tropicales
#> [21] Dentados tropicales Dentados tropicales Dentados tropicales Dentados tropicales
#> [25] Dentados tropicales Dentados tropicales Dentados tropicales Dentados tropicales
#> [29] Dentados tropicales Dentados tropicales Dentados tropicales
#> 7 Levels: Chapalote Cónico Dentados tropicales Ocho hileras ... Tropicales tardíos

R packages required for running imanr

  • Required: missForest, tidymodels, xgboost, bundle, dplyr, parallel, doParallel, foreach

Participating institutions

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("imanr")

2.0.0 by Rafael Nieves-Alvarez, 2 years ago


Browse source code at https://github.com/cran/imanr


Authors: Rafael Nieves-Alvarez [aut, cre] , Arturo Sanchez-Porras [aut, cph] , Aline Romero-Natale [aut] , Otilio Arturo Acevedo-Sandoval [aut]


Documentation:   PDF Manual  


GPL (>= 3) license


Imports missForest, dplyr, parallel, doParallel, foreach, bundle, tidymodels, xgboost

Suggests testthat, knitr, rmarkdown


See at CRAN