Generate best guess of height for each taxa*context
add_height(
df,
context = "cell",
env_prcomp,
lustr,
lustr_col = "ht",
ht_func = max
)
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
Function to summarise height values for any context with more than one cover value.
Dataframe with cov_col removed and replaced with best guess height in column use_height