aqer_read_csv: Functions to read Air Quality e-Reporting (AQER)...

Description Usage Arguments Value Author(s) See Also Examples

View source: R/aqer_read_csv.R

Description

aqer_read_csv_worker is the unvectorised worker function which can be used other situations other than just reading many files, such as exporting data in parallel.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
aqer_read_csv(
  file,
  encoding = "UCS-2LE",
  as_smonitor = FALSE,
  timeout = 30,
  warn = TRUE,
  verbose = FALSE
)

aqer_read_csv_worker(file, encoding, as_smonitor, timeout, warn, verbose)

Arguments

file

Vector of file names to read or a character vector to be parsed.

encoding

Encoding of file.

as_smonitor

Should the return be formatted for use within the smonitor framework?

timeout

When file is a URL, how many seconds should be used as a timeout?

warn

Should the function raise warnings?

verbose

Should the function give messages?

Value

Tibble.

Author(s)

Stuart K. Grange

See Also

aqer_file_list

Examples

1
2
3
4
5
6
# Example url
url <- "https://ereporting.blob.core.windows.net/downloadservice/GI_9_22755_2017_timeseries.csv"
data_aqer <- aqer_read_csv(url)

# Correct some data types
data_aqer_clean <- aqer_read_csv(url, as_smonitor = TRUE)

skgrange/aqerimportr documentation built on Aug. 10, 2021, 11:42 p.m.