nfi_results_summarise: Summarise the nfi results data (raw or filtered)

Description Usage Arguments Functional groups

View source: R/data_modifications.R

Description

Summarise the data by polygon groups and functional groups (if any)

Usage

1
2
3
4
5
6
nfi_results_summarise(nfi_data, polygon_group = "none",
  functional_group = "none", diameter_classes, dominant_group = "none",
  dominant_criteria = "density", dominant_nfi = "none", polygon_object,
  conn, .funs = dplyr::funs(mean = mean(., na.rm = TRUE), se = sd(.,
  na.rm = TRUE)/sqrt(n()), min = min(., na.rm = TRUE), max = max(., na.rm =
  TRUE), n = n()), .collect = TRUE)

Arguments

nfi_data

tbl from nfi_results_data or nfi_results_filter

polygon_group

character indicating the polygon group to summarise, if any.

functional_group

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

diameter_classes

Logical indicating if the table contains diameter classes

dominant_group

Dominant functional group to summarise data, if any.

dominant_criteria

Character with the dominancy criteria, basal area ("basal_area") or density ("density"). Default to density.

dominant_nfi

Character with the nfi version for the dominancy in the case of the comparision tables. Defauilt to "none".

conn

pool connection to the database

.funs

functions list (as obtained from funs) with the summarise functions

.collect

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

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.