Extracts non-ranking, plot-level trait data from a ClimMob trial object. The function detects variables ending in "_a", "_b", or "_c", infers the trait and collection moment, and reshapes the data into long format for analysis.

exportMeasuredTraits(x)

Arguments

x

An object of class CM_list containing raw ClimMob trial data.

Value

A data frame of class CM_df with one row per genotype observation, including block ID, plot, genotype name, collection moment, trait name, value, and value type. Returns an empty CM_df if no measured traits are present.

Details

If no measured traits are found in the data (i.e., no variables ending in "_a", "_b", or "_c"), the function returns an empty CM_df object with valid column names.