nfi_results_data: Retrieve NFI data as tbl

Description Usage Arguments Details Functional groups

View source: R/data_access.R

Description

Get the results data by plot (with or without breakdown)

Usage

1
2
3
4
5
nfi_results_data(conn, nfi = c("nfi_2", "nfi_3", "nfi_4", "nfi_2_nfi_3",
  "nfi_3_nfi_4", "nfi_2_shrub", "nfi_3_shrub", "nfi_4_shrub",
  "nfi_2_regen", "nfi_3_regen", "nfi_4_regen"),
  functional_group = "none", diameter_classes = FALSE,
  .collect = TRUE)

Arguments

conn

pool object to access the tables, as obtained from nfi_connect

nfi

character indicating the nfi version

functional_group

Functional group to retrieve table for, Default to 'none' (no functional group). See details for more information

diameter_classes

logical indicating if diameter classes are required (breaking down the table by diameter classes). Default to FALSE.

.collect

Logical indicating if the tbl must be collected locally. Default to TRUE

Details

Data is retrieved from the postgreSQL db in tbl form

Functional groups

functional_group parameter allows to retrieve the table of plots broken down by the desired group. Allowed values are:


MalditoBarbudo/tidyNFI documentation built on Sept. 7, 2019, 9:11 a.m.