read.dima: Reading in data from multiple DIMAs

Description Usage Arguments

View source: R/reading.R

Description

This will read in data from one or more DIMAs according to the SQL queries requested and includes default SQL queries for canopy gap, line-point intercept, soil stability, and species inventory data. The output is either a list of lists of query results named with the source filename[s] or a list of query results combined from all sources named with the query name[s].

Usage

1
2
3
4
read.dima(data.path, dima.list = NULL, all.tables = FALSE, gap = FALSE,
  lpi = FALSE, species = FALSE, species.inventory = FALSE,
  stability = FALSE, stability.tidy = FALSE, custom.query = NULL,
  combine = TRUE)

Arguments

data.path

Character string. The path to the folder containing the DIMA[s].

dima.list

Optional character vector. One or more filenames of DIMAs to read data from in data.path. If not specified, all DIMAs in the folder will be read from.

gap

Logical. If TRUE then canopy gap data will be read in with a default SQL query. Defaults to FALSE.

lpi

Logical. If TRUE then line-point intercept data will be read in with a default SQL query. Defaults to FALSE.

species

Logical. If TRUE then species data will be read in with a default SQL query. Defaults to FALSE.

species.inventory

Logical. If TRUE then species inventory data will be read in with a default SQL query. Defaults to FALSE.

stability

Logical. If TRUE then soil stability data will be read in with a default SQL query. Defaults to FALSE.

stability.tidy

Logical. TRUE then soil stability data will be reformatted from the format in DIMA into a tidy data frame. Defaults to FALSE.

custom.query

An optional named character vector of one or more SQL queries. Value names should follow the same pattern as "gap", "lpi", "species.inventory".

combine

Logical. If TRUE then the output will be a named list of data frames, one for each SQL query. The data frames will contain all of the relevant data from all of the DIMAs read from. If FALSE then the output will be a named list of per-DIMA named lists of query result data frames. Defaults to TRUE.

all

Logical. If TRUE then the contents of all tables in the database will be read in. Defaults to FALSE.


nstauffer/dima.tools documentation built on May 20, 2019, 2:09 p.m.