Learn R Programming

APAtree (version 1.0.1)

apa_add_subplot_dat: Add subplots to datasets

Description

If there are subplots within the plots for which APA-characteristics should be calculated, they may be added to the apa_list.

Usage

apa_add_subplot_dat(
  apa_list,
  subplot_dat,
  subplot_id_column,
  radius = NULL,
  apa_polygon = attr(apa_list, "apa_config")$apa_polygon
)

Arguments

apa_list

A apa_list-object that was created with the [apa_list]-function.

subplot_dat

A named list with datasets (sf-data.frames) about the subplots . Each data.frame in subplot_dat has to have a unique name, a column with the plot_id, an own id-column (specified via the subplot_id_column argument) and a geometry column. The geometry column either has to contain POLYGON-data or POINT-data (in which case APA-properties in circular neighborhoods around the points will be calculated.)

subplot_id_column

A named vector specifying the id-columns of the subplot datasets.

radius

If a geometry column in subplot_dat contains POINT-data, radius specifies the radius of the neighborhood analysis.

apa_polygon

Should polygons of the the APA-patches added to the dataset?