R/format_data_PPBstats.data_agro_HA.R
format_data_PPBstats.data_agro_HA.Rd
format_data_PPBstats.data_agro_HA
checks and formats the data to be used by PPBstats functions for agro HA to study local adpatation
format_data_PPBstats.data_agro_HA(data)
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 |
---|
origin: the location where the germplasm come from
version: away or home
More details can be found in the book here.