biometry / bipartite

repository for the bipartite R-package for network analysis
36 stars 17 forks source link

Error from specieslevel function #22

Closed MargaGF closed 1 month ago

MargaGF commented 3 months ago

Hi all,

I am trying to run an analysis at the species level, but I am getting the error: Error in dimnames(x) <- dn : length of 'dimnames' [1] not equal to array extent

We could think there was something wrong with the structure of my data, however, I got the network level metrics with the same dataset. Also, my data are arranged in the same way as the Safariland data. This is one of my datasets:

dataset_example

Do you have any idea of what could be wrong?

Cheers,

MargaGF commented 3 months ago

I was able to make it work by transposing the columns and rows :)

cdormann commented 1 month ago

I have no idea, why this wouldn't work. That you managed to get it working by transposing suggests (to me) that the data were not correctly formatted (e.g. rownames as a column, rather than attribute).