earth_event: Calls EONET webservice

Description Usage Arguments Examples

View source: R/eonet.R

Description

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

Usage

1
2
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

1
2
3
4
## Not run: 
event <- earth_event(limit = 1)

## End(Not run)

nasadata documentation built on May 2, 2019, 2:38 a.m.