make_wide_df: Make a wide (usually site * taxa) data frame

View source: R/make_wide_df.R

make_wide_dfR Documentation

Make a wide (usually site * taxa) data frame

Description

Make a wide (usually site * taxa) data frame

Usage

make_wide_df(
  bio_df,
  context,
  taxa_col = "taxa",
  num_col = "use_cover",
  num_col_NA = 0
)

Arguments

bio_df

Dataframe containing the site and taxa data in long format.

context

Character. Name of columns defining context.

taxa_col

Character. Name of column containing taxa.

num_col

Character. Name of column containing numeric abundance data ( usually 'cover' for plants).

num_col_NA

Value to use to fill NA in wide table.

Value

wide format version of bio_df


Acanthiza/envCluster documentation built on July 16, 2025, 10:17 p.m.