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 data.frame object including the general database where quality must be checked. This data.frame must include a first column in Date format and the rest of columns in numeric format belonging to each pollen type by column. It is not necessary to insert the missing gaps; the function will automatically detect them.

int.window

A numeric (interger)value bigger or equal to 1. The argument specifies the number of days of each side of the start, peak or end date of the main pollen season which will be checked during the quality control. If any of these days has been interpolated, the current season will not pass the quality control. The int.window argument will be 2 by default.

perc.miss

A numeric (interger) value between 0 and 100. The argument specifies the maximal percentage of interpolated days which is allowed inside the main pollen season to pass the quality control. The perc.miss argument will be 20 by default.

ps.method

A character string specifying the method applied to calculate the pollen season and the main parameters. The implemented methods that can be used are: "percentage", "logistic", "moving", "clinical" or "grains". A more detailed information about the different methods for defining the pollen season may be consulted in calculate_ps function. The ps.method argument will be "percentage" by default.

result

A character string specifying the format of the results. Only "plot" or "table" available. If "plot", graphical resume of the quality control will be plotted. If "table", a data.frame will be created indicating the filters passed by each pollen type and season. Consult 'Return' for more information .The result argument will be "plot" by default.

th.day

See calculate_ps for more details.

perc

See calculate_ps for more details.

def.season

See calculate_ps for more details.

reduction

See calculate_ps for more details.

red.level

See calculate_ps for more details.

derivative

See calculate_ps for more details.

man

See calculate_ps for more details.

th.ma

See calculate_ps for more details.

n.clinical

See calculate_ps for more details.

window.clinical

See calculate_ps for more details.

window.grains

See calculate_ps for more details.

th.pollen

See calculate_ps for more details.

th.sum

See calculate_ps for more details.

type

See calculate_ps for more details.

int.method

See calculate_ps for more details.

...

Other arguments passed on to the pollen season calculation as specified in calculate_ps function.

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:

Value

This function can return different results:

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)])

[Package AeRobiology version 2.0.1 Index]