MyNixOS website logo
Description

Calculate the Dutch Air Quality Index (LKI).

Calculates the dutch air quality index (LKI). This index was created on the basis of scientific studies of the health effects of air pollution. From these studies it can be deduced at what concentrations a certain percentage of the population can be affected. For more information see: <https://www.rivm.nl/bibliotheek/rapporten/2014-0050.pdf>.

con2lki

CRANstatus Travis buildstatus

LKI is the air quality index used by the Netherlands. The index summarises data on air quality. Each substance concentration is converted into a number from 1 (little pollution) to 11 (a lot of pollution). The substance with the hight index value determines to whole air quality index. If all substances have the same index value, the total index value will be one point higher.

This index was created on the basis of scientific studies of the health effects of air pollution. From these studies it can be deduced at what concentrations a certain percentage of the population can be affected. For more information see: https://www.rivm.nl/bibliotheek/rapporten/2014-0050.pdf

Installation

You can install the released version of con2lki from CRAN with:

install.packages("con2lki")

Example

This is a basic example:

library(dplyr, quietly = T, warn = F)
library(con2lki)

df <- data.frame(
   no2  = c(15, 30, 100,  1, 201),
   o3   = c(35, 20,  58,  0, 201),
   pm10 = c(4,  30, 101,  0, 101),
   pm25 = c(45, 40,  99,  2, 110)
)

df %>% mutate(
   lki = con2lki(no2, pm25, pm10, o3)
)
#>   no2  o3 pm10 pm25 lki
#> 1  15  35    4   45   6
#> 2  30  20   30   40   6
#> 3 100  58  101   99   9
#> 4   1   0    0    2   2
#> 5 201 201  101  110  11
Metadata

Version

0.1.0

License

Unknown

Platforms (75)

    Darwin
    FreeBSD
    Genode
    GHCJS
    Linux
    MMIXware
    NetBSD
    none
    OpenBSD
    Redox
    Solaris
    WASI
    Windows
Show all
  • aarch64-darwin
  • aarch64-genode
  • aarch64-linux
  • aarch64-netbsd
  • aarch64-none
  • aarch64_be-none
  • arm-none
  • armv5tel-linux
  • armv6l-linux
  • armv6l-netbsd
  • armv6l-none
  • armv7a-darwin
  • armv7a-linux
  • armv7a-netbsd
  • armv7l-linux
  • armv7l-netbsd
  • avr-none
  • i686-cygwin
  • i686-darwin
  • i686-freebsd
  • i686-genode
  • i686-linux
  • i686-netbsd
  • i686-none
  • i686-openbsd
  • i686-windows
  • javascript-ghcjs
  • loongarch64-linux
  • m68k-linux
  • m68k-netbsd
  • m68k-none
  • microblaze-linux
  • microblaze-none
  • microblazeel-linux
  • microblazeel-none
  • mips-linux
  • mips-none
  • mips64-linux
  • mips64-none
  • mips64el-linux
  • mipsel-linux
  • mipsel-netbsd
  • mmix-mmixware
  • msp430-none
  • or1k-none
  • powerpc-netbsd
  • powerpc-none
  • powerpc64-linux
  • powerpc64le-linux
  • powerpcle-none
  • riscv32-linux
  • riscv32-netbsd
  • riscv32-none
  • riscv64-linux
  • riscv64-netbsd
  • riscv64-none
  • rx-none
  • s390-linux
  • s390-none
  • s390x-linux
  • s390x-none
  • vc4-none
  • wasm32-wasi
  • wasm64-wasi
  • x86_64-cygwin
  • x86_64-darwin
  • x86_64-freebsd
  • x86_64-genode
  • x86_64-linux
  • x86_64-netbsd
  • x86_64-none
  • x86_64-openbsd
  • x86_64-redox
  • x86_64-solaris
  • x86_64-windows