Learn R Programming

ClimMobTools (version 1.4)

getTraitList: Organize trait ranks in a ClimMob data

Description

This function helps in identifying the traits assessed in the tricot project and validates the data returning a list with logical vectors to support the transformation of tricot rankings into a PlackettLuce ranking

Usage

getTraitList(data, pattern, trait.labels = NULL, ...)

Value

a list with trait validation data

Arguments

data

data.frame, the ClimMob data

pattern

character, the tricot ranking pattern

trait.labels

an optional character with clean trait labels

...

additional arguments, not implemented yet

Examples

Run this code
if (FALSE) { # interactive()
require("gosset")

data("breadwheat", package = "gosset")

getTraitList(breadwheat, c("_best", "_worst"))
}

Run the code above in your browser using DataLab