There is a newer version of the record available.

Published February 19, 2025 | Version v3
Dataset Open

Spatio-temporal dynamics of attacks around deaths of wolves: A statistical assessment of lethal control efficiency in France

  • 1. ROR icon Centre National de la Recherche Scientifique
  • 2. ROR icon Institut National de Recherche pour l'Agriculture, l'Alimentation et l'Environnement
  • 3. French Biodiversity Agency

Description

This repository contains the supplementary materials (Supplementary_figures.docx, Supplementary_tables.docx) of the manuscript: "Spatio-temporal dynamics of attacks around deaths of wolves: A statistical assessment of lethal control efficiency in France". This repository also provides the R codes and datasets necessary to run the analyses described in the manuscript. 

The R datasets with suffix "_a" have anonymous spatial coordinates to respect confidentiality. Therefore, the preliminary preparation of the data is not provided in the public codes. These datasets, all geolocated and necessary to the analyses, are:

  • Attack_sf_a.RData: 19,302 analyzed wolf attacks on sheep
    • ID: unique ID of the attack
    • DATE: date of the attack
    • PASTURE: the related pasture ID from "Pasture_sf_a" where the attack is located
    • STATUS: column resulting from the preparation and the attribution of attacks to pastures (part 2.2.4 of the manuscript); not shown here to respect confidentiality
  • Pasture_sf_a.RData: 4987 analyzed pastures grazed by sheep
    • ID: unique ID of the pasture
    • CODE: Official code in the pastoral census
    • FLOCK_SIZE: maximum annual number of sheep grazing in the pasture
    • USED_MONTHS: months for which the pasture is grazed by sheep
  • Removal_sf_a.RData:  232 analyzed single wolf removal or groups of wolf removals
    • ID: unique ID of the removal
    • OVERLAP: are they single removal ("non-interacting" in the manuscript => "NO" here), or not ("interacting" in the manuscrit, here "SIMULTANEOUS" for removals occurring during the same operation or "NON-SIMULTANEOUS" if not). 
    • DATE_MIN: date of the single removal or date of the first removal of a group
    • DATE_MAX: date of the single removal or date of the last removal of a group
    • CLASS: administrative type of the removal according to definitions from 2.1 part of the manuscript
    • SEX: sex or sexes of the removed wolves if known
    • AGE: class age of the removed wolves if known
    • BREEDER: breeding status of the removed female wolves, "Yes" for female breeder, "No" for female non-breeder. Males are "No" by default, when necropsied; dead individuals with NA were not found. 
    • SEASON: season of the removal, as defined in part 2.3.4 of the manuscript
    • MASSIF: mountain range attributed to the removal, as defined in part 2.3.4 of the manuscript
  • Area_to_exclude_sf_a.RData: one row for each mountain range, corresponding to the area where removal controls of the mountain range could not be sampled, as defined in part 2.3.6 of the manuscript

These datasets were used to run the following analyses codes:

  • Code 1 : The file Kernel_wolf_culling_attacks_p.R contains the before-after analyses.
    • We start by delimiting the spatio-temporal buffer for each row of the "Removal_sf_a.RData" dataset. 
      • We identify the attacks from "Attack_sf_a.RData" within each buffer, giving the data frame "Buffer_df" (one row per attack)
      • We select the pastures from "Pasture_sf_a.RData" within each buffer, giving the data frame "Buffer_sf" (one row per removal)
    • We calculate the spatial correction
      • We spatially slice each buffer into 200 rings, giving the data frame "Ring_sf" (one row per ring)
      • We add the total pastoral area of the ring of the attack ("SPATIAL_WEIGHT"), for each attack of each buffer, within Buffer_df ("Buffer_df.RData")
    • We calculate the pastoral correction
      • We create the pastoral matrix for each removal, giving a matrix of 200 rows (one for each ring) and 180 columns (one for each day, 90 days before the removal date and 90 day after the removal date), with the total pastoral area in use by sheep for each corresponding cell of the matrix (one element per removal, "Pastoral_matrix_lt.RData")
      • We simulate, for each removal, the random distribution of the attacks from "Buffer_df.RData" according to "Pastoral_matrix_lt.RData". The process is done 100 times (one element per simulation, "Buffer_simulation_lt.RData"). 
    • We estimate the attack intensities
      • We classified the removals into 20 subsets, according to part 2.3.4 of the manuscript ("Variables_lt.RData") (one element per subset)
      • We perform, for each subset, the kernel estimations with the observed attacks ("Kernel_lt.RData"), with the simulated attacks ("Kernel_simulation_lt.RData") and we correct the first kernel computations with the second ("Kernel_controlled_lt.RData") (one element per subset). 
      • We calculate the trend of attack intensities, for each subset, that compares the total attack intensity before and after the removals (part 2.3.5 of the manuscript), giving "Trends_intensities_df.RData". (one row per subset)
      • We calculate the trend of attack intensities, for each subset, along the spatial axis, three times, one for each time analysis scale. This gives "Shift_df" (one row per ring and per time analysis scale.
  • Code 2 : The file Control_removals_p.R contains the control-impact analyses.
    • It starts with the simulation of 100 removal control sets ("Control_sf_lt_a.RData") from the real set of removals ("Removal_sf_a.RData"), that is done with the function "Control_fn" (l. 92).
    • The rest of the analyses follows the same process as in the first code "Kernel_wolf_culling_attacks_p.R", in order to apply the before-after analyses to each control set. All objects have the same structure as before, except that they are now a list, with one resulting element per control set. These objects have "control" in their names (not to be confused with "controlled" which refers to the pastoral correction already applied in the first code). 
    • The code is also applied again, from l. 92 to l. 433, this time for the real set of removals (l. 121) - with "Simulated = FALSE" (l. 119). We could not simply use the results from the first code because the set of removals is restricted to removals attributed to mountain ranges only. There are 2 resulting objects: "Kernel_real_lt.RData" (observed real trends) and "Kernel_controlled_real_lt.RData" (real trends corrected for pastoral use). 
    • The part of the code from line 439 to 524 relates to the calculations of the trends (for the real set and the control sets), as in the first code, giving "Trends_intensities_real_df.RData" and "Trends_intensities_control_lt.RData". 
    • The part of the code from line 530 to 588 relates to the calculation of the 95% confidence intervals and the means of the intensity trends for each subset based on the results of the 100 control sets (Trends_intensities_mean_control_df.RData, Trends_intensities_CImin_control_df.RData and Trends_intensities_CImax_control_df.RData). This will be used to test the significativity of the real trends. This comparison is done right after, l. 595-627, and gives the data frame "Trends_comparison_df.RData". 
  • Code 3 : The file Figures.R produces part of the figures from the manuscript:
    • "Dataset map": figure 1
    • "Buffer": figure 2 (then pasted in powerpoint)
    • "Kernel construction": figure 5 (then pasted in powerpoint)
    • "Trend distributions": figure 7
    • "Kernels": part of figures 10 and S2
    • "Attack shifts": figure 9 and S1
    • "Significant": figure 8

Files

Trends_intensities_df.csv

Files (182.5 MB)

Name Size Download all
md5:1689772a21d52c76bc0cb764d0e82e53
5.1 MB Download
md5:86c4e6494ed81a81a815a3ef1be2c710
311.9 kB Download
md5:6fa366b00d2f0f2d1b0d2c57aaa89b60
120.8 kB Download
md5:17205aa24c0c47e302ee40bb8ac56906
121.9 MB Download
md5:81b8316c223114fa14765e81aa1d7d71
34.0 kB Download
md5:b3b18a528830319c66ffd3868fe8f00a
367.2 kB Download
md5:ea45a790c6678010b859907eb06c698b
42.5 kB Download
md5:efb1ee1eca6ebeb9e63e62ab6c7a8747
6.1 MB Download
md5:824554c6c12c8319241e5a924728baf3
6.0 MB Download
md5:7f23db1ce4b78a86fa92a168ee47296d
5.6 MB Download
md5:cd2e00e709631d02d18fe544f38f140c
5.6 MB Download
md5:55a485c847d7c527c837639e4fedf4bd
5.9 MB Download
md5:68a6c8e78b7e27bbf434b5fab45f6c27
28.4 kB Download
md5:da6aa32be36d72ae4374a7461a3465ea
217 Bytes Download
md5:cc431ad4bdfca8b75865894b8987af78
569.3 kB Download
md5:a71eb0c9c113d7573b624d159da5d615
1.7 MB Download
md5:f7c36ff2d9b8930259a89a9dc137af35
5.3 MB Download
md5:29d8fbda61f002d9ce295b70d24e6660
6.7 kB Download
md5:2dacd7542300489bb49b687e072155ec
17.8 MB Download
md5:4fc081bb54d8f6dab39a616d269401e7
25.8 kB Download
md5:a8f4fad20305f310f098d4bcb569f0dd
1.8 kB Download
md5:42272a1c29ecf1d2b494ddc648441074
880 Bytes Download
md5:f3f24562996025792dfc00e30f2a8e9f
871 Bytes Download
md5:f019fc4ed94a6e83dfbfd68dbb3077b8
24.5 kB Download
md5:20bee0c8d70b8589f76cd96375b88d35
906 Bytes Preview Download
md5:218e6be9712ba3de90876b31b821d49b
909 Bytes Download
md5:42db980ae6b5a661c8da8eaef84c306a
869 Bytes Download
md5:d1c41ed1d07a9e66aca100ebc7c72833
1.1 kB Download
md5:2633e32b6773db9fa938d6a96d31ca83
1.7 kB Download

Additional details

Software

Programming language
R