The purpose of this package is to simplify downloading data from iNaturalist and perform simple filtering upon that data. Thank you to Edmund Hart for building the rinat package which I used to interact with iNaturalist. His GitHub can be found at https://www.github.com/emhart. Also thank you to the contributors of dplyr, https://github.com/tidyverse/dplyr.
This first function prompts you for a taxon of interest, how many results you want, and what year you want to look in. In this example, I have used a modified taxon_search script that has the prompts already filled out.
knitr::opts_chunk$set(echo = params$printcode) library(NaturalR)
taxon_search_demo()
In actual package usage, use "taxon_search" and you will be prompted for the 2 parameters
This step serves to remove any observations in your initial query that have identity disagreements.
remove_disagreements(search_output)
The next function serves to filter out any observation that is not considered a research grade observation. This is another step which serves to increase the quality of the downloaded data.
research_grade_only(disagreements_removed)
Finally there is a query summarized function which gives you a numerical overview of the remaining data. Since the data is in a data frame format, any further filtering or visualization can be easily done from this step.
query_summarized(filtered_research) knitr::kable(summary_of_query, format="html")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.