Alex-Fuster / network_coherence

WG network coherence
MIT License
3 stars 0 forks source link

Working out the bees example #2

Open graciellehigino opened 8 months ago

graciellehigino commented 8 months ago

@tutudocerrado I've got us to the point we were at with the fish data, but for the bees and plants. It's all developed in the bees_example branch

What we need to do now is:

graciellehigino commented 8 months ago

@tutudocerrado I've updated all the code files!

I'll get the GBIF data (it's loading right now) and save an RDS for you. But if you want to subset and play with the data, all the code to get them is already in our bees_example branch.

:tada:

graciellehigino commented 7 months ago

@tutudocerrado We got it all, I've committed all the code. I'll send you the cleaned data by email so you don't have to download all the GBIF data again. The workflow right now looks like this:

  1. Run scripts 01 and 01.1
  2. Skip script 02 and run script 03 instead. Make sure to update the value after "environ_layers$" in the last line - this changes each time you download the environmental data, but we can change that later in a way that every time that we run this script, it will download a specific environmental layer. Not relevant for demonstration purposes.
  3. Run scripts 4 through 6.

Script 6 has functions for us to get the derivatives by group or by species (it can probably be optimized to merge them into one single function).

graciellehigino commented 7 months ago

Alright, here's the occurrence data.

Enjoy!

graciellehigino commented 7 months ago

We now have the derivatives! Next challenge is how the heck do we get the co-response matrix???!?!?!?!