recode_traits: Recode traits

View source: R/recode_traits.R

recode_traitsR Documentation

Recode traits

Description

Change the names of the traits in a vector from 1, 2 and 3 to "Ecological", "Mating" and "Neutral", respectively.

Usage

recode_traits(x)

Arguments

x

A vector of trait numbers

Value

A vector of factors

See Also

forcats::fct_recode

Examples


recode_traits(1:3)


rscherrer/speciomer documentation built on March 11, 2023, 5:37 p.m.