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)

The parameters passed into this search were chiroptera and 2020

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")


Sammibulin/NaturalR documentation built on Dec. 18, 2021, 12:56 p.m.