dima_prep: Attach PrimaryKeys to DIMA Tables

View source: R/dima_prep.R

dima_prepR Documentation

Attach PrimaryKeys to DIMA Tables

Description

Given path to a DIMA and a designation for SpeciesState, create an R object (list) containing DIMA tables with PrimaryKeys appended

Given path to a DIMA and a designation for SpeciesState, create a species table ready for use by terradactyl

Given path to a DIMA and a designation for SpeciesState, merge species tables created by create_species_list()

Usage

dima_prep(path_dima, speciesstate, path_out = NULL, remove_invalid_keys = T)

create_species_list(path_dima, path_out, speciesstate)

merge_species_list(path_dimas, path_out, speciesstate)

Arguments

path_dima

Full file path and name of the DIMA to be processed

speciesstate

Code to be attached to the data connecting the species list with input plots. Required for terradactyl functions.

path_out

If specified, function saves an rdata object containing the function output, and formatted tblSpecies, to this folder.

remove_invalid_keys

If TRUE, data which cannot be connected to a valid primary key is dropped. This is recommended to remove orphan records.


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