Generate best guess of lifeform for each taxa*context
add_lifeform(df, context = "cell", env_prcomp, lulife)
Dataframe with context, taxa and lifeform columns.
Character. Name of columns defining context.
List. Result from call to envClean::env_pca()
Dataframe lookup for lifeform.
Dataframe with best guess lifeform replacing original lifeform.