exportMeasuredTraits: Extract and format measured traits

View source: R/exportMeasuredTraits.R

exportMeasuredTraitsR Documentation

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)

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.

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.

See Also

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


ClimMobTools documentation built on Nov. 27, 2025, 5:06 p.m.