Learn R Programming

ClimMobTools (version 1.8.2)

exportMeasuredTraits: Extract and format measured traits

Description

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.

Usage

exportMeasuredTraits(x)

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.

Arguments

x

An object of class CM_list containing raw ClimMob trial data.

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.

See Also

Other export functions: exportBlockData(), exportTrialMetadata(), exportTricotRanks(), exportVariablesDescription()