Skip to contents

Generate best guess of lifeform for each taxa*context

Usage

add_lifeform(df, context = "cell", env_prcomp, lulife)

Arguments

df

Dataframe with context, taxa and lifeform columns.

context

Character. Name of columns defining context.

env_prcomp

List. Result from call to envClean::env_pca()

lulife

Dataframe lookup for lifeform.

Value

Dataframe with best guess lifeform replacing original lifeform.