gordy2x / ecoCopula

R package to find species interactions from co-occurrence data
14 stars 9 forks source link

simplify seed code in cord.R #13

Closed dwarton closed 2 years ago

dwarton commented 3 years ago

getting rid of global environment changes in set seed

dwarton commented 2 years ago

I'm changing the format of spider.RData on CRAN so it is consistent with other datasets, making spider$x a data frame (and spider $abund a matrix). This fails the current ecoCopula test which assumes spider$x is a matrix. All other examples code in ecoCopula runs, but some lines in it are now redundant, so I went through and suggested some simplifications

dwarton commented 2 years ago

getting rid of global environment changes in set seed

oh I also noted that the changes I made to simplify the set.seed weren't accepted on main branch so I retracted this suggested change, so the first two commits in the above request an be ignored, all the changes are in the last one

dwarton commented 2 years ago

oh I also suggested a dependency mvabund(>=4.2) to refer to the mvabund version where the spider data was changed. Another potentially relevant change in this version was to the structure of manyany, which has a simpler call now