Generate best guess of height for each taxa*context
add_height(df, context = "cell", env_prcomp, lustr, lustr_col = "ht")
Dataframe with context, taxa and height columns.
Character. Name of columns defining context.
List. Result from call to envClean::env_pca()
Dataframe. Lookup from lifeform
to numeric height values
Character. Name of column in lustr containing height
values to use for any lifeform
Dataframe with cov_col removed and replaced with best guess height in column use_height