lidar_get_data: Access the aggregated data for administrative and natural...

View source: R/lfcLiDAR.R

lidar_get_dataR Documentation

Access the aggregated data for administrative and natural areas

Description

lidar_get_data is a wrapper for the $get_data method of lfcLiDAR objects. See also lidar.

Usage

lidar_get_data(
  object,
  table_name,
  variables = c("AB", "BAT", "BF", "CAT", "DBH", "DEN", "HM", "LAI", "REC", "VAE")
)

Arguments

object

lfcLiDAR object, as created by lidar

table_name

character vector of lenght 1 indicating the table to retrieve

variables

character vector indicating variables for which data is returned. If not provided, all variables stats are returned

Details

Precalculated aggregated values for

  • Catalonia, in the lidar_catalunya table

  • Provinces, in the lidar_provincias table

  • Veguerias, in the lidar_veguerias table

  • Regions, in the lidar_comarcas table

  • Municipalities, in the lidar_municipalities table

  • National Parks

  • Natura 2000 Network

Value

An sf object with the aggregated values for each administrative division or natural area for the variables requested

See Also

Other LiDAR functions: lidar_avail_tables(), lidar_clip_and_stats(), lidar_describe_var(), lidar_get_lowres_raster(), lidar_point_value(), lidar()

Examples

if (interactive()) {
  lidardb <- lidar()
  # provinces data for DBH and AB
  provinces_data <- lidar_get_data(lidardb, 'lidar_provincias', c('AB', 'DBH'))
  provinces_data

  # lidardb is an R6 object, so the previous example is the same as:
  lidardb$get_data('lidar_provincias', c('AB', 'DBH'))
}


MalditoBarbudo/lfcdata documentation built on May 2, 2023, 10:30 p.m.