BlasBenito/distantia

Bug with workflowNullPsi()

Opened this issue · 0 comments

Hello,

First time I open an issue on Github for an R package, hope I’m not making a mistake somewhere.
I’m using your package to measure dissimilarity between lakes based on several environmental metrics, working with regularly aligned METS. Using the euclidean method, I calculate the dissimilarity and their signicativity, with the argument paired.sample=TRUE. I had an error with the workflowNullPsi() function which got me stuck for a moment (see screenshot01). I took the liberty to look in the code of the function, and I think I found the solution. Looks like you forgot to assign the time column to the sequences.randomized. Seems to be working for me now with 2 short lines added. I send you the modified version of the function (see # NEW commentaries) and illustrative data if you need. Tell me if I got it wrong.
And thanks for your package and your detailled example !

Fabien Bourinet

screenshot01

[sequences_prep_2.1.csv](https://github.com/BlasBenito/distantia/files/8341804/sequences_prep_2.1.csv) [workflowNullPsi_edited.txt](https://github.com/BlasBenito/distantia/files/8341805/workflowNullPsi_edited.txt)