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 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