knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-",
  out.width = "100%"
)

lfcdata

R build status

The goal of lfcdata R package is to provide access to the Laboratori Forestal CatalĂ  public databases.

Installation

You can install the released version of lfcdata from GitHub with:

# install.packages("remotes")
remotes::install_github("MalditoBarbudo/lfcdata", ref = "master", build_vignettes = TRUE)

And the development version from GitHub with:

# install.packages("remotes")
remotes::install_github("MalditoBarbudo/lfcdata", ref = "staging", build_vignettes = TRUE)

Databases

A quick glance on the current availbale databases. See vignette(package = 'lfcdata') to get a more detailed explanation of each db as well as their tables and variables.

Spanish National Forest Inventory (NFI) data for Catalonia

library(lfcdata)
library(dplyr)
nfidb <- nfi()
nfidb
nfidb |>
  nfi_get_data('plot_nfi_4_results', spatial = TRUE) |>
  select(geometry, density, basal_area) |>
  plot()

Allometries

allometriesdb <- allometries()
allometriesdb
allometriesdb |>
  allometries_get_data('allometries')

LiDAR eco-physiological data for Catalonia

lidardb <- lidar()
lidardb
lidardb |>
  lidar_get_data('lidar_provinces', 'AB') |>
  plot()


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