Skip to content

Kopelke et 2017 - Food‐web structure of willow‐galling sawflies and their natural enemies across Europe

Notifications You must be signed in to change notification settings

TheoreticalEcosystemEcology/reshapeSalix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Format original data from Kolpelke et al. 2017 with R

This document explains how to reshape the original dataset from Kolpelke et al. 2016, and then explore and manipulate the new data structure. This document is not intended to be a description of the dataset, we rather provide lines of code to import and handle the dataset in the statistical language R. Notably, we split the data set into dfferent tables for which primary keys are assigned (i.e. unique identifer) allowing us to easily retrieve pieces of information from each tables. We exemplify the handling of the data and we further show how to obtain a quick map and how to use the data for network analyses. For further details, please have a look at the document entitled summary.pdf.

Important - A maintained version of this original content can be found on Github plateform at this address: https://github.com/TheoreticalEcosystemEcology/reshapeSalix

Setting up

Compile summary.Rmd

setwd("path/to/the/Salix/folder")
install.packages("rmarkdown")
install.packages("magrittr")
library(magrittr)
rmarkdown::render("summary.Rmd", output_format = "all")

Run reshape script get_formatData()

setwd("path/to/the/Salix/folder")
install.packages("magrittr")
library(magrittr)
source("./lib/format4R.r")
get_formatData("./data/Salix_web.csv")

About

Kopelke et 2017 - Food‐web structure of willow‐galling sawflies and their natural enemies across Europe

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages