florabr
florabr: Explore and Spatialize Species Distribution Using Flora e Funga do Brasil
Science Score: 26.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
○.zenodo.json file
-
✓DOI references
Found 3 DOI reference(s) in README -
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (18.1%) to scientific vocabulary
Last synced: 10 months ago
·
JSON representation
Repository
florabr: Explore and Spatialize Species Distribution Using Flora e Funga do Brasil
Basic Info
- Host: GitHub
- Owner: wevertonbio
- Language: R
- Default Branch: main
- Homepage: https://wevertonbio.github.io/florabr/
- Size: 17 MB
Statistics
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 2
- Releases: 3
Created almost 3 years ago
· Last pushed over 1 year ago
Metadata Files
Readme
Changelog
README.Rmd
---
output: github_document
---
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
# florabr
[](https://CRAN.R-project.org/package=florabr)
[](https://cranlogs.r-pkg.org:443/badges/grand-total/florabr)
[](https://github.com/wevertonbio/florabr/actions/workflows/R-CMD-check.yaml)
[](https://app.codecov.io/gh/wevertonbio/florabr?branch=main)
[-lightgrey.svg?style=flat)](http://www.gnu.org/licenses/gpl-3.0.html)
[Flora e Funga do Brasil](https://floradobrasil.jbrj.gov.br/consulta/) is the most comprehensive work to reliably document Brazilian plant, algae and fungi diversity. It involves the work of hundreds of taxonomists, integrating data from plant (including algae) and fungi collected in Brazil during the last two centuries. The database contains detailed and standardized morphological descriptions, illustrations, nomenclatural data, geographic distribution, and keys for the identification of all native and non-native plants and fungi found in Brazil.
The florabr package includes a collection of functions designed to retrieve, filter and spatialize data from the Flora e Funga do Brasil dataset.
## Package citation
Trindade, W. C. (2024). florabr: An R package to explore and spatialize species distribution using Flora e Funga do Brasil. Applications in Plant Sciences, e11616. [10.1002/aps3.11616](https://doi.org/10.1002/aps3.11616)
## Overview of functions
### Download and import Flora e Funga do Brasil Dataset
- `check_version()`: Check if you have the latest version of Flora e Funga do Brasil dataset available.
- `get_florabr()`: Download the latest version of Flora e Funga do Brasil database.
- `load_florabr()`: Load Flora e Funga do Brasil database.
- `solve_discrepancies()`: Resolve discrepancies between species and subspecies/varieties information.
### Check names
- `check_names()`: Check species names.
- `get_binomial()`: Extract the binomial name (Genus + specific epithet) from a complete Scientific Name.
- `get_synonym()`: Retrieve synonyms for species.
### Select or subset species
- `get_attributes()`: Get available attributes to filter species.
- `select_by_vernacular()`: Search for taxa using vernacular names.
- `select_species()`: Select species based on its characteristics and distribution.
- `subset_species()`: Extract a subset of species from Flora e Funga do Brasil database.
### Spatialize distribution and use Flora e Funga do Brasil to flag records
- `get_pam()`: Get a presence-absence matrix of species.
- `filter_florabr()`: Identify records outside natural ranges according to Flora e Funga do Brasil.
- `get_spat_occ()`: Get Spatial polygons (SpatVectors) of species based on its distribution (States and Biomes) according to Flora e Funga do Brasil.
## Installation
### Install stable version from CRAN
To install the stable version of `florabr` use:
``` r
install.packages("florabr")
```
### Install development version from GitHub
You can install the development version of florabr from [GitHub](https://github.com/wevertonbio/florabr) with:
``` r
if(!require(remotes)){
install.packages("remotes")
}
if(!require(florabr)){
remotes::install_github("wevertonbio/florabr")}
library(florabr)
```
Before downloading the data available in the Flora e Funga do Brasil, we need to create a folder to save the data:
``` r
#Creating a folder in a temporary directory
#Replace 'file.path(tempdir(), "florabr")' by a path folder to be create in your computer
my_dir <- file.path(file.path(tempdir(), "florabr"))
dir.create(my_dir)
```
You can now utilize the `get_florabr` function to retrieve the most recent version of the data:
``` r
get_florabr(output_dir = my_dir, #directory to save the data
data_version = "latest", #get the most recent version available
overwrite = T) #Overwrite data, if it exists
```
You also have the option to download an older, specific version of the Flora e Funga do Brasil dataset. To explore the available versions, please refer to [this link](https://ipt.jbrj.gov.br/jbrj/resource?r=lista_especies_flora_brasil). For downloading a particular version, simply replace 'latest' with the desired version number. For example:
``` r
get_florabr(output_dir = my_dir, #directory to save the data
data_version = "393.385", #Version 393.385, published on 2023-07-21
overwrite = T) #Overwrite data, if it exists
```
## Loading data
In order to use the other functions of the package, you need to load the data into your environment. To achieve this, utilize the `load_florabr()` function. By default, the function will automatically search for the latest available version in your directory. However, you have the option to specify a particular version using the *data_version* parameter. Additionally, you can choose between two versions of the data: the 'short' version (containing the 19 columns required for run the other functions of the package) or the 'complete' version (with all original 39 columns). The function imports the 'short' version by default.
``` r
#Load the short version
bf <- load_florabr(data_dir = my_dir,
data_version = "Latest_available",
type = "short") #short
```
## Package website
See the package website ( ) for further functions explanation and vignettes.
Owner
- Name: Weverton Trindade
- Login: wevertonbio
- Kind: user
- Twitter: o_weverton
- Repositories: 11
- Profile: https://github.com/wevertonbio
PhD student at Plant Ecology Laboratory - Federal University of Paraná.
GitHub Events
Total
- Issues event: 2
- Issue comment event: 1
- Push event: 9
Last Year
- Issues event: 2
- Issue comment event: 1
- Push event: 9
Issues and Pull Requests
Last synced: almost 2 years ago
All Time
- Total issues: 1
- Total pull requests: 13
- Average time to close issues: N/A
- Average time to close pull requests: 7 minutes
- Total issue authors: 1
- Total pull request authors: 1
- Average comments per issue: 0.0
- Average comments per pull request: 0.0
- Merged pull requests: 13
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 1
- Pull requests: 6
- Average time to close issues: N/A
- Average time to close pull requests: less than a minute
- Issue authors: 1
- Pull request authors: 1
- Average comments per issue: 0.0
- Average comments per pull request: 0.0
- Merged pull requests: 6
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- wevertonbio (1)
- Lobz (1)
Pull Request Authors
- wevertonbio (16)
Top Labels
Issue Labels
enhancement (1)
Pull Request Labels
Packages
- Total packages: 1
-
Total downloads:
- cran 271 last-month
- Total dependent packages: 0
- Total dependent repositories: 0
- Total versions: 4
- Total maintainers: 1
cran.r-project.org: florabr
Explore Flora e Funga do Brasil Database
- Homepage: https://wevertonbio.github.io/florabr/
- Documentation: http://cran.r-project.org/web/packages/florabr/florabr.pdf
- License: GPL (≥ 3)
-
Latest release: 1.3.0
published almost 2 years ago
Rankings
Dependent packages count: 28.6%
Dependent repos count: 36.8%
Average: 50.5%
Downloads: 86.0%
Maintainers (1)
Last synced:
10 months ago
Dependencies
.github/workflows/R-CMD-check.yaml
actions
- actions/checkout v3 composite
- r-lib/actions/check-r-package v2 composite
- r-lib/actions/setup-pandoc v2 composite
- r-lib/actions/setup-r v2 composite
- r-lib/actions/setup-r-dependencies v2 composite
.github/workflows/pkgdown.yaml
actions
- JamesIves/github-pages-deploy-action v4.4.1 composite
- actions/checkout v3 composite
- r-lib/actions/setup-pandoc v2 composite
- r-lib/actions/setup-r v2 composite
- r-lib/actions/setup-r-dependencies v2 composite
DESCRIPTION
cran
- R >= 2.10 depends
- XML >= 3.99.0.14 imports
- data.table >= 1.14.8 imports
- httr >= 1.4.6 imports
- stats >= 4.2.3 imports
- terra >= 1.7.39 imports
- utils >= 4.2.3 imports
- knitr * suggests
- rmarkdown * suggests