Finally

How to share code

Ideas around sharing code are not new as this 2015 post shows.


For examples of how to format your code see below. Reassure yourself that their code is not necessarily easy to understand at first glance but that they try to explain their code through succinct annotations.

Example 1

Culina, A., van den Berg, I., Evans, S. and Sánchez-Tójar, A. 2020. Low availability of code in ecology: A call for urgent action. PLoS Biology. 18(7), p.e3000763.

See the correction for the data availability statement. Find the link that takes you to Zenodo, download the zip file and extract it. Open one of the .R script files in Rstudio and look at what information they have included and how they have formatted their code before sharing.


Example 2

Jones, P.F., Jakes, A.F., Eacker, D.R. and Hebblewhite, M. 2020. Annual pronghorn survival of a partially migratory population. The Journal of Wildlife Management. 84(6), pp.1114-1126.

Just before the results there’s a link to Zenodo where you can look at R files.


Data cleaning

Go back and review all the functions you have used in this course to clean data.


Choosing the best visualisation

Go back and review all the graphs or other figures you have used in this course.


Downloading data

Practice downloading datasets from the internet for the assessment using the BLGY5121M Advanced Statistics Assessment document on Minerva.