rinat (version 0.1.6)

get_inat_obs_project: Download observations or info from a project

Description

retrieve observations from a particular iNaturalist project. This function can be used to get either observations or information from a project by project name or ID

Usage

get_inat_obs_project(grpid, type = c("observations", "info"), raw = FALSE)

Arguments

grpid

Name of the group as an iNaturalist slug or group id

type

character Either "observations" or "info" Observations returns all observations, and "info" returns project details similar to what you can find on a project webpage.

raw

logical TRUE or FALSE. If TRUE and searching for project info, returns the raw output of parsed JSON for that project. Otherwise just some basic information is returned as a list

Details

An iNaturalist slug is usually the project as single string with words separated by hyphens. For instance, the project "State Flowers of the United States" has a slug of "state-flowers-of-the-united-states-eol-collection". This can be extracted from the URL for the project usually. The state flowers project has the following URL http://www.inaturalist.org/projects/state-flowers-of-the-united-states-eol-collection

Examples

Run this code
# NOT RUN {
 get_inat_obs_project(354, type = "observations")
 get_inat_obs_project("crows-in-vermont", type="info",raw=FALSE)
# }

Run the code above in your browser using DataLab