-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME.Rmd
More file actions
90 lines (60 loc) · 2.86 KB
/
README.Rmd
File metadata and controls
90 lines (60 loc) · 2.86 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
78
79
80
81
82
83
84
85
86
87
88
---
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%"
)
```
# bdffpRain
<!-- badges: start -->
[](https://github.com/BrunaLab/BDFFP-precipitation/actions)
[](https://zenodo.org/badge/latestdoi/271884316)
<!-- badges: end -->
**Translation**: So far I have only translated documentation with Google Scholar, so I would appreciate help translating from English to Portuguese or correcting any mistranslations!
*[Versão em português](https://github.com/BrunaLab/BDFFP-precipitation/blob/master/README.pt-BR.md)*
This repository houses the `bdffpRain` package and the raw data and wrangling code used to produce the `bdffp_rain` (English) and `pdbff_chuva` (Portuguese) datasets.
## The R package
The `bdffpRain` R package contains cleaned daily precipitation data from 8 rain gauges at the Biological Dynamics of Forest Fragments Project between 1987 and 2010.
To install the package run:
``` r
install.packages("remotes")
remotes::install_github("BrunaLab/bdffpRain")
```
The data is in `bdffp_rain`, which looks like this:
```{r}
library(bdffpRain)
data("bdffp_rain")
head(bdffp_rain)
```
Check the help file for detailed metadata with `?bdffp_rain`.
## Raw data and wrangling code
If you are interested in the raw data or the code used to clean and wrangle those data, you can fork this repository, or download it with the green "Code" button on this page.
You'll find the raw data in a series of .XLS files in the `"data_raw"` directory and annotated wrangling code in the `"wrangling"` directory.
## Data usage
If you wish to use this data for a publication, please cite:
``` r
"Scott, Eric R. & Emilio M. Bruna. 2022. BrunaLab/bdffpRain (v0.0.1). Zenodo. https://doi.org/10.5281/zenodo.6557721"
```
If you prefer the citation in .bib format you can copy it here:
``` r
@software{eric_r_scott_2022_6557721,
author = {Eric R Scott and
Emilio M. Bruna},
title = {BrunaLab/bdffpRain},
month = may,
year = 2022,
publisher = {Zenodo},
version = {v0.0.1},
doi = {10.5281/zenodo.6557721},
url = {https://doi.org/10.5281/zenodo.6557721},
}
```
The vignette for the package shows an example of how to use imputation to "fill in" missing observations and produce a complete dataset that can be used to produce figures and summary statistics for monthly precipitation at BDFFP.
Additionally, there is old, probably broken code in the `"notes"` directory that may be useful.
## Contributing
If you find mistakes or issues or would like to suggest improvements, please file an issue.