#' Read tree annotations for a NEON site from a set of XML files
#'
#' @param siteID NEON site abbreviation (e.g. "HARV")
#' @return a dataframe of tree annotations in the format xmin, xmax, ymin, ymax
#'
readTreeXML <- function(siteID) {
path <- paste(system.file("extdata", "annotations/", package = "NeonTreeEvaluation"))
f <- list.files(path, pattern = siteID, full.names = TRUE, recursive = TRUE)
dat <- dplyr::bind_rows(lapply(f, xml_parse))
return(dat)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.