earth_event: Calls EONET webservice

Description Usage Arguments Value Examples

Description

Calls NASA's Earth Observatory Natural Event Tracker (EONET) webservice and returns a list containing individual events as data.frame.

Usage

1
2
3
earth_event(status = c("all", "open", "closed"), sources = "all",
  category_id = "all", limit = 10, days = 20, LimitType = c("limit",
  "days", "all"), TrySimplify = TRUE)

Arguments

status

Accepts "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 (see 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).

Value

Returns a list with individual events:

Events

data.frame - TODO description

Sources

data.frame - TODO description

Categories

data.frame - TODO description

Geography

list of data.frame - TODO description

Meta

data.frame - TODO description

Examples

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

## End(Not run)

Eflores89/nasadata documentation built on May 6, 2019, 3:23 p.m.