Code for working with data from the Norwegian Insect Monitoring program. This is experimental and currently only for internal use. By Jens Åström, the Norwegian Institute for Nature Research.
You can install the development version of Norimon from GitHub with:
# install.packages("devtools")
devtools::install_github("NINAnor/Norimon")
This is a basic example which shows you how to solve a common problem:
library(Norimon)
#> Loading required package: ggplot2
#> Loading required package: rlang
connect_to_insect_db()
beetles <- get_observations(subset_orders = "Coleoptera")
beetles
#> # A tibble: 140 × 8
#> year locality habitat_type region_name no_species shannon_div
#> <int> <chr> <chr> <chr> <int> <dbl>
#> 1 2020 Skog_01 Forest Østlandet 77 48.7
#> 2 2020 Skog_02 Forest Østlandet 117 88.1
#> 3 2020 Skog_03 Forest Østlandet 80 50.8
#> 4 2020 Skog_04 Forest Østlandet 24 19.5
#> 5 2020 Skog_05 Forest Østlandet 32 25.1
#> 6 2020 Skog_06 Forest Østlandet 32 23.2
#> 7 2020 Skog_07 Forest Østlandet 93 47
#> 8 2020 Skog_08 Forest Østlandet 27 24.2
#> 9 2020 Skog_09 Forest Østlandet 91 46.8
#> 10 2020 Skog_10 Forest Østlandet 70 49.4
#> # ℹ 130 more rows
#> # ℹ 2 more variables: mean_no_asv_per_species <dbl>, GDE_by_asv <dbl>