format_data_PPBstats.data_agro_LF checks and formats the data to be used by PPBstats functions for agro HA to study local adpatation

format_data_PPBstats.data_agro_LF(data)

Arguments

data

The data frame to format. It should have at least the following columns : c("year", "germplasm", "location", "block", "X", "Y", "origin", "version", "..."), with "..." the variables. The variables can be linked to their corresponding dates. The dates are associated to their corresponding variable by $. For example the date associated to variable y1 is y1$date. The date must have format year-month-day, e.g. 2017-12-05

Details

  • origin: the location where the germplasm come from

  • version: foreign or local

More details can be found in the book here.

See also