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.

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

if (FALSE) { 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 }