fd_inventory_spain: Spanish Forest Inventory

View source: R/forest-inventory.R

fd_inventory_spainR Documentation

Spanish Forest Inventory

Description

Download the tables and SIG data from the Spanish Forest Inventory

Usage

fd_inventory_spain(
  province,
  ifn = 4,
  database = "field",
  process_level = 0,
  path_metadata = NULL,
  quiet = FALSE
)

Arguments

province

a character string of length 1 with the name of a Spanish province

ifn

number of Spanish Forest Inventory (from 2 to 4)

database

the name of the database (either 'field' or 'gis')

process_level

integer. Used when database = 'field'. Level of process of raw data.

path_metadata

a character string of length 1 with the path to store the metadata of the selected database. The default path_metadata = NULL does not download the metadata

quiet

if TRUE, suppress any message or progress bar

Details

The IFN2 doesn't have 'gis' data for Asturias, Cantabria and Navarra.

Value

A list with the tables

References

https://www.miteco.gob.es/es/biodiversidad/temas/inventarios-nacionales/inventario-forestal-nacional.html

See Also

metadata_forestdata for a list of possible species

Examples

## Not run: 
library(odbc)
if ("Microsoft Access Driver (*.mdb, *.accdb)" %in% odbc::odbcListDrivers()$name) {
  # Download MFE50 for Canary Islands
  canarias_ifn4_lst <- fd_inventory_spain("Canarias")
} else {
  message("Skipping example as <Microsoft Access Driver (*.mdb, *.accdb)> is not available.")
}

## End(Not run)

forestdata documentation built on June 8, 2025, 12:43 p.m.