-
Notifications
You must be signed in to change notification settings - Fork 12
/
README.Rmd
107 lines (71 loc) · 3.97 KB
/
README.Rmd
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
---
output: github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r, echo = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/"
)
library(portalr)
```
# portalr <img src="man/figures/logo.png" width="200px">
<!-- badges: start -->
[![R-CMD-check](https://github.com/weecology/portalr/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/weecology/portalr/actions/workflows/R-CMD-check.yaml)
[![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/weecology/portalr/main/LICENSE)
[![Codecov test coverage](https://codecov.io/gh/weecology/portalr/graph/badge.svg)](https://app.codecov.io/gh/weecology/portalr)
[![CRAN downloads](https://cranlogs.r-pkg.org/badges/grand-total/portalr)](https://CRAN.R-project.org/package=portalr)
[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.1429290.svg)](https://doi.org/10.5281/zenodo.1429290)
[![DOI](http://joss.theoj.org/papers/10.21105/joss.01098/status.svg)](https://doi.org/10.21105/joss.01098)
[![NSF-1929730](https://img.shields.io/badge/NSF-1929730-blue.svg)](https://www.nsf.gov/awardsearch/showAward?AWD_ID=1929730)
<!-- badges: end -->
## Overview
The **portalr** package provides collection of basic functions to summarize the Portal project data on rodents, plants, ants, and weather at our long-term field site in the Chihuahuan Desert. The data begin in 1977 and are continuously updated today. There are functions to summarize rodent abundance, biomass, or energy and by site, plot, or treatment type. There are functions to summarize the weather data collected from our automated weather stations and plant data that is collected each summer and fall.
## Installation
You can install portalr from CRAN with:
```{r CRAN-installation, eval = FALSE}
install.packages("portalr")
```
OR from github with:
```{r gh-installation, eval = FALSE}
# install.packages("remotes")
remotes::install_github("weecology/portalr")
```
## Examples
1. Load all data tables from the [PortalData GitHub repo](https://github.com/weecology/portalData):
```{r load data from repo, eval = FALSE}
data_tables <- load_rodent_data("repo")
```
2. Download and generate summaries of rodent abundance and biomass:
```{r download and summarize rodent data, eval = FALSE}
download_observations(".")
rodent_data <- abundance(".") # default grouping is by sampling period
rodent_biomass_by_plot <- biomass(".", level = "plot", type = "granivores",
shape = "flat", time = "date")
```
3. Retrieve weather data:
```{r weather data, eval = FALSE}
weatherdata <- weather("Monthly", ".")
```
For more detailed info, checkout the vignettes associated with the package:
```{r browse vignettes, eval = FALSE}
browseVignettes("portalr")
```
## More Information
#### [Portal Data Repo](https://github.com/weecology/PortalData)
The data repo contains useful details for issues with data collection, and background on why we handle them the way we do. Of course, it also contains the raw data, if you would like to create more complex data summaries than what is provided here.
#### [The Portal Project](https://portal.weecology.org/)
Find a list of previous publications using the Portal data at our website.
#### [The Portal Blog](https://portalproject.wordpress.com/)
Follow our blog to get the latest news on what is happening with our project and at the site.
## Citation
To cite `portalr`, please refer to either:
* [JOSS publication](https://doi.org/10.21105/joss.01098):
Erica M. Christensen, Glenda M. Yenni, Hao Ye, Juniper L. Simonis, Ellen K. Bledsoe, Renata M. Diaz, Shawn D. Taylor, Ethan P. White, and S. K. Morgan Ernest. (2019). portalr: an R package for summarizing and using the Portal Project Data. Journal of Open Source Software, 4(33), 1098, https://doi.org/10.21105/joss.01098
* or use the most recent release on [Zenodo](https://doi.org/10.5281/zenodo.1429290).
### Dataset Citation
To cite the Portal dataset, use:
```{r}
get_dataset_citation()
```