rolf_to_openair_single: Converts one parameter in a rolf data frame to an openair...

View source: R/openair.R

rolf_to_openair_singleR Documentation

Converts one parameter in a rolf data frame to an openair compatible format

Description

This function plucks the data for one parameter. If multiple combinations of parameter, unit and interval exists it is necessary to specify which unit and/or interval to pluck.

Usage

rolf_to_openair_single(
  data,
  parameter = NULL,
  unit = NULL,
  interval = NULL,
  keep_interval = FALSE
)

Arguments

data

containing the parameter in rolf format

parameter

to pluck

unit

Optional: unit of the parameter to pluck. Default NULL

interval

Optional: interval of the parameter to pluck. Default NULL

keep_interval

Optional: keep interval column. Default FALSE

Value

tibble with one parameter in openair compatible format including unit, site and optional interval column

Examples

h1 <- system.file("extdata", "Zch_Stampfenbachstrasse_h1_2013_Jan.csv",
                   package = "rOstluft.data", mustWork = TRUE)

airmo_h1 <- read_airmo_csv(h1)
rolf_to_openair_single(airmo_h1, "NO2", unit = "\u00b5g/m3", keep_interval = TRUE)


Ostluft/rOstluft documentation built on Feb. 6, 2024, 1:26 a.m.