ingest_ENSO: Ingest Multivariate El Nino Southern Oscillation Index data

Description Usage Arguments Value Examples

View source: R/ingest_el_nino.R

Description

ingest_ENSO ingests data from the NOAA Earth System Research Laboratory Physical Sciences Division Mulivariate El Nino Southern Oscillation Index. https://www.esrl.noaa.gov/psd/enso/mei/index.html All ingest functions use the source file name as an identifying column to track provenance and relate data and metadata read from files.

Usage

1
2
3
4
5
ingest_ENSO(
  input.source = "http://www.esrl.noaa.gov/psd/enso/mei/table.html",
  end.year = NULL,
  export.header = TRUE
)

Arguments

input.source

Character indicating the URI to the HTML representation of the data.

end.year

Four digit integer indicating the last year of data wanted.

export.header

A logical indicating if header information is written to a separate data frame.

Value

A data frame. If export.header = TRUE a temporary file is created for the header data. See ingest_header for more information.

Examples

1
2
3
4
5
## Not run: 
df_enso <- ingest_ENSO()  # reads in all the data from start date to present
df_enso1 <- ingest_ENSO(end.year=2000)  # reads in the data from start date to the year 2000

## End(Not run)

jpshanno/ingestr documentation built on Sept. 24, 2020, 11:40 a.m.