Learn R Programming

nasadata (version 0.9.0)

earth_event: Calls EONET webservice

Description

Calls NASA's Earth Observatory Natural Event Tracker (EONET) webservice and returns a data.frame with individual event or events.

Usage

earth_event(status = "all", sources = "all", category_id = "all", limit = 10, days = 20, LimitType = "limit", TrySimplify = TRUE)

Arguments

status
Accepts 1 or 0 (open or closed). Defaults to "all", which includes both.
sources
Accepts character id strings from EONET sources (see eonet_sources)
category_id
Accepts number id strings from EONET category tree (se eonet_categories)
limit
Limit of events to download. If LimitType = "days" this is not considered. Defaults to 10.
days
Limit of days (less than today) to download events from. If LimitType = "limit" this is not considered. Defaults to 20.
LimitType
Type of limit to consider: "limit" (count of events), "days" (days less than today) or "all" (both limits).
TrySimplify
If TRUE tries to coerce category and event data.frames into one (successful if there is one category per event).

Examples

Run this code
## Not run: 
# event <- earth_event(limit = 1)
# ## End(Not run)

Run the code above in your browser using DataLab