A data frame with 300 rows and 8 columns: 4 continuous morphometric traits
and 3 ecological traits (2 categorical, 1 ordinal) for demonstrating
mixed-type imputation. Species names are in the Species_Key
column. Set rownames(df) <- df$Species_Key; df$Species_Key <- NULL
before passing to preprocess_traits.
Format
A data frame with 300 rows and 8 variables:
- Species_Key
Character. Species name in BirdTree format (spaces replaced by underscores).
- Mass
Numeric. Body mass (grams).
- Beak.Length_Culmen
Numeric. Beak length from culmen (mm).
- Tarsus.Length
Numeric. Tarsus length (mm).
- Wing.Length
Numeric. Wing length (mm).
- Trophic.Level
Factor. Dietary category: Carnivore, Herbivore, Omnivore, or Scavenger.
- Primary.Lifestyle
Factor. Lifestyle category: Aerial, Aquatic, Generalist, Insessorial, or Terrestrial.
- Migration
Ordered factor. Migration strategy: Resident < Partial < Full.
