View source: R/addPlotGeometries.R
addPlotGeometries | R Documentation |
Adds/replaces static plot geometry information (plot shape, dimensions, ...) to plot elements of a VegX object from a data frame where rows are plots.
addPlotGeometries( target, x, mapping, methods = list(), missing.values = c(NA, ""), verbose = TRUE )
target |
The initial object of class |
x |
A data frame where each row corresponds to one plot. Columns can be varied. |
mapping |
A named list whose elements are strings that correspond to column names in
|
methods |
A list measurement methods for plot geometry measurements (each being an object of class |
missing.values |
A character vector of values that should be considered as missing data. |
verbose |
A boolean flag to indicate console output of the data integration process. |
Named elements in mapping
beyond those used by this function will be ignored. Missing value policy:
Missing plotName
and shape
values are interpreted as if the previous non-missing value has to be used to define plot.
Missing subPlotName
values are interpreted in that data refers to the parent plotName.
Missing measurements (e.g. area
, radius
,...) are simply not added to the Veg-X document.
The modified object of class VegX
.
Wiser SK, Spencer N, De Caceres M, Kleikamp M, Boyle B & Peet RK (2011). Veg-X - an exchange standard for plot-based vegetation data
Other add functions:
addAggregateOrganismObservations()
,
addCommunityObservations()
,
addIndividualOrganismObservations()
,
addPlotLocations()
,
addPlotObservations()
,
addSiteCharacteristics()
,
addSiteObservations()
,
addStratumObservations()
,
addSurfaceCoverObservations()
,
addTaxonBySiteData()
# Load source data data(mokihinui) # Define location mapping mapping = list(plotName = "Plot", subPlotName = "Subplot", area = "PlotArea", shape = "Shape", width = "PlotRectangleLength01", length = "PlotRectangleLength02") # Define methods methods = list(area = "Plot area/m2", width = "Plot dimension/m", length = "Plot dimension/m") # Create new Veg-X document with plot locations x = addPlotGeometries(newVegX(), moki_site, mapping, methods) # Inspect results showElementTable(x, "plot")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.