Publications by Frederico Mestre
Updating MetaLandSim…
A new development version is know available for the package MetaLandSim (v. 1.0.6). It can be downloaded from GitHub. The user has to run the following code in order to install the package from GitHub: library(devtools) install_github(“FMestre1/MetaLandSim”) These changes were required because of recent improvements made to the package rgrass...
1426 sym 2 img
Function to download biotic interaction datasets
I work in ecology, biogeography, etc… Biotic interactions (interactions between species) and its repercussions on species distributions is my main research interest. As such, I had, at some point, to download datasets on species interactions. I wanted to be able to produce a uniform (more or less, not as much as I would like) R object whatever ...
2146 sym R (23064 sym/1 pcs)
Package lconnect: patch connectivity metrics and patch prioritization
Today I’m revisiting an older blog post on our package lconnect, which is available in CRAN (here). If you want to learn about the available connectivity metrics check this post. It is intended to be a very simple approach to derive landscape connectivity metrics. Many of these metrics come from the interpretation of landscape as graphs. Addit...
1436 sym R (855 sym/7 pcs) 4 img
From R to WordPress in two easy steps
Wanting to post with some regularity in this blog, I needed to have a quick, easy way to do so. Importantly, I wanted to do this for free! I searched the internet, and found RWordPress. This package does just that, helps the user to post in WordPress (resorting also to knitr). I will provide here the code I used to do this (which I did not use fo...
1166 sym
Downloading food web databases and deriving basic structural metrics
This blog post presents a beta version of the package to download, process and derive metrics from food web datasets. DISCLAIMER: This is an early release. The code will be subject to improvements with time. Some of this code has been adapted from other sources (e.g. Ecobase website). A few errors are expected when running these functions. Any su...
1511 sym R (2519 sym/8 pcs) 3 img
Cliping several rasters with a multi-polygon shapefile
The problem! Imagine you have this situation: you have several global raster files and a shapefile with a few areas (e.g. Natural Parks). You want to generate a raster file using as mask each of the polygons in the shapefile for each of the original rasters. So, if you have 5 global rasters and a shapefile with 10 polygons, the output of this wou...
2203 sym R (1543 sym/3 pcs)
Update to a previous post: cutting multiple rasters with a multi-polygon shapefile
A little while ago I posted here a function which was enormously useful for me (and I thought it might be for others to). At the time, I needed to cut many rasters by a multipolygon shapefile and create rasters with the result of this operation. However, recently, I provided some advice to a fellow Geekcologist and realized that the function need...
863 sym R (1315 sym/1 pcs)
The robustness of food webs to species extinctions
The study of food webs is very relevant, considering the role these networks have in describing the transfer of energy and matter in the ecosystem (Thompson et al. 2012). As such, the evaluation of the robustness to species extinctions is an important step in any analysis evaluating food web stability. The attack on networks, such as food webs, c...
3144 sym R (841 sym/2 pcs) 4 img