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
setwd("path/to/the/Salix/folder")
install.packages("rmarkdown")
install.packages("magrittr")
library(magrittr)
rmarkdown::render("summary.Rmd", output_format = "all")
setwd("path/to/the/Salix/folder")
install.packages("magrittr")
library(magrittr)
source("./lib/format4R.r")
get_formatData("./data/Salix_web.csv")