Learn R Programming

forestdata

forestdata is an R package for downloading forestry and land use data. This package aims to provide users with easy access to various datasets related to forestry and land use.

Installation

You can install the latest version in CRAN using:

pak::pak("forestdata")

Or you can install the development version using:

pak::pak("Cidree/forestdata")

Functions

In the following table, you can find a summary of the available functions, a short description, and the object type of the output.

Note

Please read the function documentation carefully. Some datasets may require proper citation when used.

Copy Link

Version

Install

install.packages('forestdata')

Monthly Downloads

246

Version

0.3.0

License

GPL (>= 3)

Maintainer

Adrián Cidre González

Last Published

April 3rd, 2025

Functions in forestdata (0.3.0)

mask_with_feedback

Masks a list of SpatRasters (Internal) Masks using cli feedback
fdi_dominant_height

Calculates the dominant height
metadata_forestdata

Metadata for forestdata functions
fdi_download

(Internal) Downloads data to tempdir Download data to tempdir
fd_pathogens_defid2

Download the DEFID2 database
forestdata-package

forestdata: Download Forestry Data
fdi_fix_names

(Internal) Fix non Latin-ASCII names
get_combined_raster_2l

Combines different raster tiles (Internal) Helper to combine rasters from Copernicus Global Land Cover.
get_combined_raster

Combines different raster tiles (Internal) Helper to combine rasters from forest extent GLAD
fdi_download_unzip

(Internal) Downloads data to tempdir Download data to tempdir
fdi_download_7zip

(Internal) Downloads data to tempdir Download data to tempdir
nest_ifn_shrub

Nest IFN3 or IFN 4 shrub data (Internal) Helper to nest data from IFN
nest_ifn_regeneration

Nest IFN3 or IFN 4 regeneration data (Internal) Helper to nest data from IFN
process_ifn

Process a list returned by fd_iventory_spain (Internal) Helper process IFN3 or IFN4 data
fdi_download_raster

Donwload a read a raster (Internal) Helper to download and read a raster from an URL
fdi_basal_area

Calculates Basal Area in square meters.
nest_ifn_tree

Nest IFN3 or IFN 4 tree data (Internal) Helper to nest data from IFN
process_pmayores

Level 2 process of tree data (Internal) Helper to process tree data of IFN
fd_allometry_tallo

TALLO database
fd_canopy_height

Forest Canopy Height
fd_forest_glad

Global Land Analysis & Discovery datasets
fd_canopy_height_eth

Forest Canopy Height
crop_with_feedback

Crop a list of SpatRasters (Internal) Crop using cli feedback
calc_dominant_height

Calculates dominant height
fd_forest_chorological

Download the Chorological Maps
fd_forest_france

BD Forêt
fd_forest_eutrees4f

EU-Trees4F Database
fd_landcover_esri

Download data from the ESRI Land Cover Explorer
fd_landcover_copernicus

Global Land Cover
fd_inventory_spain

Spanish Forest Inventory
fd_forest_spain_mfe50

Forest Cover of Spain
fd_canopy_height_meta

Forest Canopy Height
fdi_diametric_class

Calculates diametric class