Publications by Frederico Mestre

CheatSheet for coding in R, Python and Julia

04.07.2023

I’m making freely available the first version of something I’ve wanted to do for a long time. I’m an advanced R user, but I’m very limited in both, Python and Julia. However, I’ve been reading reports that Julia is a pretty efficient programming language (here and here, for example). I need my code to run fast, I need it not to crash for...

1429 sym 2 img

New MetaLandSim version (1.0.4) just out!

17.06.2018

The version that was only available through GitHub is now also on CRAN. This new version corrects some minor bugs in the code. Available here. Related To leave a comment for the author, please follow the link and comment on their blog: R Code – Geekcologist . R-bloggers.com offers daily e-mail updates about R news and tutorials about learni...

547 sym

Package gDefrag now on CRAN!

12.07.2018

The package gDefrag, by F. Mestre, F. Ascensão and A.M. Barbosa is now on CRAN. This is an excellent tool to prioritize the landscape de-fragmentation process. It works by prioritizing the different sections of linear infrastructures (e.g. roads, power-lines) to increase the available amount of a given resource. Check it out here! Related To ...

737 sym

New MetaLandSim version (1.0.5)!

04.11.2018

A new version of MetaLandSim is now available at the CRAN webpage. This update was needed because another package, from which MetaLandSim depends, changed a function used by this package causing it to malfunction. Related To leave a comment for the author, please follow the link and comment on their blog: R Code – Geekcologist . R-bloggers....

619 sym 2 img

From MetaLandSim to igraph and back!

15.11.2018

One of these days I got an email about converting MetaLandSim objects to igraph (or the other way around). One of the reasons I did not use igraph in the first place (leading me to develop MetaLandSim) was that I needed my nodes (the vertexes, using igraph nomenclature) to have fixed positions. These were, after all, spatial graphs! However, in i...

2996 sym R (2122 sym/13 pcs) 4 img

Creating landscapes and simulating species occupation with MetaLandSim

23.02.2019

MetaLandSim is an R package I’ve developed to simulate metapopulational dynamics on an habitat network. It also computes a lot of landscape connectivity metrics and simulates range expansion (check the manual if you are interested). I’ve mentioned it here frequently, and sometimes I like to post a simple script that I used to answer a user’...

3062 sym R (10424 sym/15 pcs) 4 img

Individual patch connectivity

27.02.2019

Answering questions from users is actually a good way to find potentially interesting things to post… With the obvious advantage that other people might find it useful too! So… let’s start… This MetaLandSim user wanted a way to derive the contribution of each individual patch to overall landscape connectivity. Here I used the method prese...

1948 sym R (3052 sym/7 pcs) 4 img

Package lconnect: patch connectivity metrics and patch prioritization

20.03.2019

Today we are presenting a new package, lconnect. This package 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. Additionally, it also provides a function to prioritize landscape patches based on their contribution to the overall landscape ...

1448 sym R (969 sym/7 pcs) 4 img

Simulating metapopulation occupation in a landscape

03.04.2019

The objective of this post is to go into the inner workings of the package MetaLandSim, which I developed a few years ago. MetaLandSim’s main objectives are to i) simulate the occupation of an habitat network suffering some sort of change (but static landscapes work too); ii) simulate range expansion by a species with a metapopulation-like spat...

4167 sym R (1244 sym/9 pcs) 7 img

How many downloads does my package have?

07.04.2019

Everyone that authors an R package is curious about how many users download it. As far as I know there’s still no way to get information on all the downloads, from all the R mirrors. Here I’m using package cranlogs, which only gives information on the downloads from the R Studio mirror. It also does not allow to now from where in the world th...

1523 sym R (1060 sym/6 pcs) 4 img