This folder contains all data and code used in the article "Strong diel variation in the activity of insect taxa sampled by Malaise traps" by Viktor Gårdman, Emme McDonald & Tomas Roslin.

The sampling of insects through Malaise traps was conducted by the authors. Data on weather covariates (e.g., temperature, relative humidity) was provided by the Swedish Transport Administration (https://www.trafikverket.se/), 

The HRS_SpeciesData file contains information about each captured individual across all taxa for each 2 hour sampling interval during the five days of sampling. Dates are given as DD/M. TrapID refers to each of the 24 traps used. Time is given in hh:mm and refers to the time of sampling, Time_con refers to time in only hh, and time_Num shows time of day as a fraction between 0 (00:00) and 1 (23:59). The superfamily belonging for each taxon used is given. Note that for taxa were only taxonomic Order or Suborders are given, the superfamily column refers to this Order or Suborder.

The HRS_EnviData file contains information about how many individual were captured at each timestep for the 17 most common taxa (appearing in >49 individuals or >19 timesteps), along with weather covariates for each timestep. The weather covariates are average values from the five half hour measurements per sampling period (expect for 22:00-02:00 and 02:00-06:00 where n=9). The taxonomic columns follow the same principle as in HRS_SpeciesData, with an additional column of taxonomic Order. Times also follow the same principle as in HRS_SpeciesData. Date is given as DD/M and Date_Num gives the dates as numbers with the first date (14/7) as 1, second date (15/7) as 2 etc. ID is a unique mix of Date and time, given as DDHH (Date, Hour). Temperature is given in degrees Celsius (°C), wind speed in m/s, cloud cover as a fraction between 0 (no cloud) and 1 (complete cloud cover), rain in mm, wind direction in cardinal directions, and relative humidity in %.

All code was created using R version 4.4.0 and is presented through Rmarkdown files.