quality_control {AeRobiology} | R Documentation |
Quality Control of a Pollen Database
Description
Function to check the quality of an historical database of several pollen types.
Usage
quality_control(data, int.window = 2, perc.miss = 20,
ps.method = "percentage", result = "plot", th.day = 100,
perc = 95, def.season = "natural", reduction = FALSE,
red.level = 0.9, derivative = 5, man = 11, th.ma = 5,
n.clinical = 5, window.clinical = 7, window.grains = 5,
th.pollen = 10, th.sum = 100, type = "none",
int.method = "lineal", ...)
Arguments
data |
A |
int.window |
A |
perc.miss |
A |
ps.method |
A |
result |
A |
th.day |
See |
perc |
See |
def.season |
See |
reduction |
See |
red.level |
See |
derivative |
See |
man |
See |
th.ma |
See |
n.clinical |
See |
window.clinical |
See |
window.grains |
See |
th.pollen |
See |
th.sum |
See |
type |
See |
int.method |
See |
... |
Other arguments passed on to the pollen season calculation as specified in |
Details
Quality control is a relevant topic for aerobiology (Oteros et al., 2013). This function is another approach to improve the quality control management in the field. quality_control
function checks the quality of the pollen data of each pollen type and season. The filters applied by the function are:
If the main pollen season (Galan et al., 2017) cannot be calculated according to
calculate_ps
function minimal requirements (lack of data for these pollen type and year). Filter named"Complete"
in the"quality_control"
data.frame
.If the start, end or peak date of the main pollen season has been interpolated or a day near to it (number of days specified by
int.window
argument). If a day near to these dates is missing, the selected date could not be the right one. Filters named"Start"
,"Peak"
and"End"
in the"quality_control"
data.frame
.The percentage of missing data inside the main pollen season. It calculates the number of days which have been interpolated by the algorithm and their percentage inside the main pollen season. If a high percentage of the main pollen season has been interpolated, the information of these season could not be reliable. Filter named
"Comp.MPS"
in the"quality_control"
data.frame
.
Value
This function can return different results:
If
result = "plot"
: Graphical resume of the Quality Control results showing the seasons of each pollen type and their quality (the risk assumed if they are included in further studies). The legend indicates the number of filter that have been unsuccessfully passed for each case. Object of classggplot
. For graphical customization, seeggplot
function.If
result = "table"
:data.frame
withlogical
values for each pollen type and season. IfTRUE
, the filter has been successfully passed for this case. If FALSE, this case does not fit the minimal requirements of this filter.
References
Galan, C., Ariatti, A., Bonini, M., Clot, B., Crouzy, B., Dahl, A., Fernandez_Gonzalez, D., Frenguelli, G., Gehrig, R., Isard, S., Levetin, E., Li, D.W., Mandrioli, P., Rogers, C.A., Thibaudon, M., Sauliene, I., Skjoth, C., Smith, M., Sofiev, M., 2017. Recommended terminology for aerobiological studies. Aerobiologia (Bologna). 293_295.
Oteros, J., Galan, C., Alcazar, P., & Dominguez_Vilches, E. (2013). Quality control in bio_monitoring networks, Spanish Aerobiology Network. Science of the Total Environment, 443, 559_565.
See Also
calculate_ps
, interpollen
, ggplot
, ggsave
Examples
data("munich_pollen")
quality_control(munich_pollen[,c(1:4)])