🔒

R Scripts — Sorting & Data wrangling

Enter the password to access this page.

🗃️

Sorting & Data wrangling

Data cleaning, filtering and taxonomic sorting

standard_names(Traits, nrowTraits, source=163, dim=NA)
Standardise species names across datasets by removing duplicates and mismatches.
addToPhylo(phylogenyTraits, GROUPTraits)
Prune a phylogeny to the set of species present in a trait data frame.
RedToTraits(IUCNGROUPtoTraits)
Merge IUCN Red List threat category into a trait data frame by matching species names.
imputation_trait(GROUPData, selectedTraits, shortnames)
Wrapper around missForest to impute missing trait values for a taxonomic group.
filter_completeness()
Remove species below a completeness threshold
merge_by_species()
Robust species-level merge across datasets
pivot_long()
Convert wide trait matrix to long format