Optionally include the importance object from random forest.

make_eco_env(
  clust_df,
  imp_df = NULL,
  clust_col = "cluster",
  env_col = "env",
  env_cols
)

Arguments

clust_df

Dataframe with cluster membership and environmental data.

imp_df

Importance from random forest.

clust_col

Character. Name of column in clust_df with cluster membership.

env_col

Character. Name of column in imp_df with

env_cols

Character. Name of columns in clust_df with environmental data.

Value

Dataframe with clust_col, env_col and summary columns including mean, median, standard deviation and (optionally) importance from random forest.