add_indicator_columns: add in all indicators columns from the "TerrADat" layer in a...

View source: R/add_indicator_columns.R

add_indicator_columnsR Documentation

add in all indicators columns from the "TerrADat" layer in a template GDB or a provided list

Description

Add indicator columns to terradat from a template.

Usage

add_indicator_columns(
  template,
  source,
  all_indicators,
  prefixes_to_zero = c("AH", "FH", "NumSpp", "Spp")
)

Arguments

template

String or data frame. A path to a geodatabase containing your template table, or the template table itself.

source

String. Name of the layer to be read from the geodatabase, if provided. If "AIM" or "TerrADat", layer TerrADat will be read.

all_indicators

Data frame. Indicator data that is missing columns.

prefixes_to_zero

Vector of column prefixes to return 0 for rather than NA. Defaults to "AH", "FH", "NumSpp", and "Spp".

Value

A data frame containing the data from all_indicators, with added NA or 0 columns.


Landscape-Data-Commons/terradactyl-utils documentation built on Nov. 19, 2024, 5:20 p.m.