extract_metadata: Import metadata from streamflow stations of ONS

View source: R/metadata.R

extract_metadataR Documentation

Import metadata from streamflow stations of ONS

Description

Import metadata from streamflow stations of ONS

Usage

extract_metadata(file, informative = FALSE)

Arguments

file

Character. Path to ascii data file (or a URL).

informative

Logical. Drop non-informative variables. Default: FALSE

Details

The text file contains data and metadata from ONS Hydroelectric Plants. Metadata is extracted from the first 15 lines of the ascii file. The information for each HPP is stored in pairs of columns. The first column is the name of the variables and the second the values of the variables. The data is processed in tidy format.

Value

a tibble with tidy data.

Source

The metadata 87 hydroelectric power plants operated by ONS were supplied by Saul Aires (ANA's Specialist in Water Resources) by Prof. Carlos Lima (UnB), by email on 2020-03-17.

Examples

if(TRUE){
  qnat_meta <- extract_metadata(NA_character_, informative = TRUE)
  str(qnat_meta)
}

lhmet-ped/HEobs documentation built on July 5, 2022, 7:39 p.m.