Skip to content

seschaub/seed_price

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

R-Code: The costs of diversity: higher prices for more diverse grassland seed mixtures


We provide here the R-code for reproducing Schaub et al (2021a).

The code is structured into

  • 'seed_price_master.R': the master R script
  • 'seed_price_des_analysis.R': runs the descriptive analysis, including the Upset approach
  • 'seed_price_lin_model.R': runs the linear analysis of the relationship between seed prices and plant diversity


In order to run the analysis you need to

  1. create a project folder and within this main folder you need to create a sub-folder called 'r_code', in which you save all provided r scripts.
  2. specify your main working directory (i.e., 'wd_code') in the R script 'seed_price_master.R'.
  3. Now you can run the R script 'seed_price_master.R', which downloads the data automatically and reproduces our analysis.


The data of the paper can be found under Schaub et al. (2021b) (https://doi.org/10.3929/ethz-b-000485215)

References:

Schaub, S., Finger, R., Buchmann, N., Steiner, V., & Klaus, V. H. (2021a). The costs of diversity: higher prices for more diverse grassland seed mixtures. Environmental Research Letters, 16(9), 094011. https://doi.org/10.1088/1748-9326/ac1a9c

Schaub, S., Finger, R., Buchmann, N., Steiner, V., & Klaus, V. H. (2021b). Data: German and Swiss seed mixture prices and characteristics. ETH Research Collection. https://doi.org/10.3929/ethz-b-000485215

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published