-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME.Rmd
More file actions
77 lines (60 loc) · 1.79 KB
/
Copy pathREADME.Rmd
File metadata and controls
77 lines (60 loc) · 1.79 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
---
output: github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
# lfcdata
<!-- badges: start -->
[](https://github.com/MalditoBarbudo/lfcdata/actions)
<!-- badges: end -->
The goal of `lfcdata` R package is to provide access to the
[Laboratori Forestal Català](http://laboratoriforestal.creaf.cat/) public databases.
## Installation
You can install the released version of lfcdata from
[GitHub](https://github.com/MalditoBarbudo/lfcdata) with:
``` r
# install.packages("remotes")
remotes::install_github("MalditoBarbudo/lfcdata", ref = "master", build_vignettes = TRUE)
```
And the development version from
[GitHub](https://github.com/MalditoBarbudo/lfcdata/tree/staging) with:
``` r
# 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
```{r nfi}
library(lfcdata)
library(dplyr)
nfidb <- nfi()
nfidb
nfidb |>
nfi_get_data('plot_nfi_4_results', spatial = TRUE) |>
select(geometry, density, basal_area) |>
plot()
```
### Allometries
```{r allometries}
allometriesdb <- allometries()
allometriesdb
allometriesdb |>
allometries_get_data('allometries')
```
### LiDAR eco-physiological data for Catalonia
```{r lidar}
lidardb <- lidar()
lidardb
lidardb |>
lidar_get_data('lidar_provinces', 'AB') |>
plot()
```