rmo_to_openair: Converts rmo to openair format

Description Usage Arguments Details Value See Also Examples

Description

Beware of some Pitfalls: the openair format has no represantation of the unit. This column will be dropped. This is a problem for the case that the data contains values with different units for the same parameter. Another problem appears for data containing mulitplezeitfenster. This will duplicate data for shared start times.

Usage

1
rmo_to_openair(df, ids = NULL, parameter_names = NULL)

Arguments

df

dataframe in rmo format

ids

opt. named list of ids for sites. if provided an id column will be added. name = parameter to rename, value = new name. Default NULL

parameter_names

opt. list of parameters to rename. name = parameter to rename, value = new name. Default NULL

Details

all parameter names will be converted to lower case. Following parameters will be automatically renamed to match the openair conventions:

Value

dataframe in openair format

See Also

https://davidcarslaw.github.io/openair/

Examples

1
2
3
4
5
6
7
## Not run: 
site_ids <- list("Zch_Schimmelstrasse"="Wiedikon", "Zch_Stampfenbachstrasse"="Staba")
pnames <- list("PM10h"="PM10")
theData <- rmo_to_openair(df, site_ids, pnames)  # data with id column an PM10h renamed to PM10
theData <- rmo_to_openair(df)                    # data without id column and PM10h as PM10h

## End(Not run)

Avsamoht/rmo documentation built on May 22, 2019, 1:46 p.m.