R/make_lifeform.R
make_lifeform.Rd
There are two tasks here:
make_lifeform(
df,
taxa_col = "taxa",
lf_col = "lifeform",
context = NULL,
lulife
)
Dataframe with taxa column.
Character. Name of taxa column.
Character. Name of lifeform (id) column.
Charcter or NULL. Set of columns that define a context within which to generate lifeform.
Dataframe lookup for lifeform.
Dataframe with columns taxa_col, visit col(s), lifeform
find the most frequent lifeform assigned to a taxa (perhaps including other context)
ensure there are no duplicates across the relevant context