get_inat_obs_project: Download observations or info from a project

Description Usage Arguments Details Examples

View source: R/get_inat_obs_project.R

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

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

Arguments

grpid

Name of the group as an iNaturalist slug or group id

type

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

raw

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 seperated 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

1
2
3
4
5
## Not run: 
 get_inat_obs_project(354, type = "observations")
 get_inat_obs_project("crows-in-vermont", type="info",raw=FALSE)

## End(Not run)

luismurao/naturalr documentation built on May 21, 2019, 8:56 a.m.