r - Error in rowSums(x) : 'x' must be an array of at least two dimensions (Vegan:oecosimu) -
i trying use application oecosimu in vegan package.
library(sna) library(permute) library(lattice) library(vegan) library(bipartite) bio<-read.csv("/home/vicar66/raw_data/jan12/98percents_april_16/otu_table/chapter1/no_bloom_bio_data_l3.txt") rownames(bio)<-bio[,1] bio[,1]<-null bio_m<-as.matrix(bio) a<-oecosimu(bio_m,bipartite::c.score,"swap")
but keep having error message: attaching package: 'bipartite'
the following object masked 'package:vegan':
nullmodel
error in rowsums(x) : 'x' must array of @ least 2 dimensions calls: oecosimu -> nullmodel -> rowsums execution halted
demo data:
ciliophora dinoflagellates malvs choanoflagellida dnahin5m 0.062469804 0.826323018 0.031084701 0.000323747 dnahin35m 0.045216826 0.595750636 0.187010719 0.000917053 dnahin150m 0.018434224 0.204865296 0.531016032 0.017009618 dnahin240m 0.016211333 0.889640227 0.04191846 0.03087407
**first column first row empty. first row rownames
anyone have encountered problem yet?
thanks!
Comments
Post a Comment