Floristic quality assessment (FQA) is a standardized method for rating the ecological value of plant communities based on the native species found there. The \({\tt fqar}\) package provides tools to download and analyze floristic quality assessments from universalfqa.org.
The development version can be installed from GitHub.
{r install} # Install development version from GitHub: devtools::install_github("equitable-equations/fqar")
The \({\tt fqar}\) package consists of three categories of functions: indexing, downloading, and tidying functions. \({\tt fqar}\) also includes two sample data sets.
```{r indexing} # download a list of all fqa databases: databases <- index_fqa_databases()
chicago_fqas <- index_fqa_assessments(database_id = 149)
chicago_transects <- index_fqa_transects(database_id = 149)
### Downloading functions
Floristic quality assessments can be downloaded individually by ID number or collectively using ${\tt dplyr::filter}$ syntax.
```{r downloading}
# download a single assessment:
woodland <- download_assessment(assessment_id = 25640)
# download multiple assessments:
mcdonald_fqas <- download_assessment_list(database_id = 149,
site == "McDonald Woods")
\({\tt fqar}\) also provides functions for downloading transect assessments.
```{r downloading2} # download a single transect assessment: rock_garden <- download_transect(transect_id = 6875)
lord_fqas <- download_transect_list(database = 63, practitioner == “Sam Lord”)
Unfortunately, the universalfqa.org server is often slow, and downloads (especially for transect assessments) may take some time.
### Tidying functions
Data sets obtained from universalfqa.org are quite messy. ${\tt fqar}$ provides tools for converting such sets into a more convenient tidy format.
```{r tidying}
# obtain a data frame with species data for a downloaded assessment:
woodland_species <- assessment_inventory(woodland)
# obtain a data frame with summary information for a downloaded assessment:
woodland_summary <- assessment_glance(woodland)
# obtain a data frame with summary information for multiple downloaded assessments:
mcdonald_summary <- assessment_list_glance(mcdonald_fqas)
Similar functions are provided for handling transect assessments. For those sets, physiognometric information can also be extracted.
```{r tidying2} # obtain a data frame with species data for a downloaded transect assessment: survey_species <- transect_inventory(rock_garden)
survey_phys <- transect_phys(rock_garden)
rock_garden_summary <- transect_glance(rock_garden)
lord_summary <- transect_list_glance(lord_fqas) ```