extract_qnat: Extract natural stramflow data from a ONS station and save to...

extract_qnatR Documentation

Extract natural stramflow data from a ONS station and save to RDS file

Description

Extract natural stramflow data from a ONS station and save to RDS file

Usage

extract_qnat(
  qnat_file = NA,
  stn_id = 74,
  save = TRUE,
  prefix = "qnat-obs-posto-",
  dest_dir = "output"
)

Arguments

qnat_file

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

stn_id

integer, station code from ONS station (output from info_station()[["posto"]]).

save

logical, TRUE to export data to RDS file.

prefix

prefix to RDS file

dest_dir

a character with the name of where the RDS file is saved. Default: fusepoc-prep/output.

Value

a tibble with columns date, posto, qnat (cmecs).

See Also

import_qnat

Examples

if(FALSE){
 qnat_posto <- extract_qnat(
                 qnat_file = NA,
                 stn_id = 74,
                 save = FALSE
                 )
 str(qnat_posto)
}

lhmet/HEobs documentation built on July 11, 2022, 8:03 a.m.