Description Usage Arguments Value Note Author(s) Examples
Given a dataframe with a time series of Expom RF-EMF measurements, this function enables you to cap the low measurements to half of the reporting limit and the high measurements to the upper reporting limit. Values are assumed to be in mW/m².
1 | correct_expom_dynrange(dataset,bandnames,prefix,old_suffix,new_suffix,new_total)
|
dataset |
A dataframe with a time series of RF-EMF measurements which are not yet capped to their dynamic range. |
bandnames |
(Optional, defaults to paste0(prefix,c("FM","TV","DL800","UL800","UL900","DL900","UL1800","DL1800","DECT","UL2100","DL2100","WIFI2G","UL2600","DL2600","WIMAX","WIFI5G"),old_suffix)). A vector with the 16 bandnames of the ExpoM-RF. If the names are those from the import_expom_RF function, the default can be used with or without the optional prefix and/or suffix. |
prefix |
(Optional, no default) Use e.g. prefix="EXPOM_" if the bandnames in your dataset have a common prefix, e.g. EXPOM_dect, EXPOM_UL2100, etc. |
old_suffix |
(Optional, no default) Use e.g. old_suffix="_uncorr" if the bandnames in your dataset have a suffix. You can change the suffix in the correction using e.g. new_suffix="_corr". |
new_suffix |
(Optional, no default) Use e.g. new_suffix="_corr" if you want the bandnames to display a new suffix in the variable name after correction. |
new_total |
(Optional, defaults to FALSE) Specify new_total=TRUE if you want to calculate a new corrected total of the 16 corrected bands. |
This function returns the same dataframe as provided in dataset, but with the dynamic range correction applied. The variables are overwritten unless a new_suffix is supplied.
Based on code by Benjamin Struchen.
Marloes Eeftens, marloes.eeftens@swisstph.ch
1 2 | dynrange_corrected<-correct_expom_dynrange(expom_example1,new_suffix="_corr",new_total=TRUE)
head(dynrange_corrected)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.