Home > other >  Using R language picante package for NTI
Using R language picante package for NTI

Time:10-24

Ask each elder bosses, the following is what I want to by R language picante package ses. MNTD NTI code, the following problems, could you tell me how to solve this?
Thank you,
The library (picante)
Mydata<- read. CSV (" C: \ \ Users \ \ PRCLUSHAN \ \ Desktop \ \ OTUas CSV ", the header=TRUE, row. Names=1)
Comm<-t (mydata)
Tree<- read. Tree (" C: \ \ Users \ \ PRCLUSHAN \ \ Desktop \ \ Newick Export1. NWK ")
Phydist & lt; - cophenetic (tree)
Ses. MNTD (comm, phydist, null model=c (" taxa. Labels "and" richness "and" frequency ", "sample. The pool", "phylogeny. Pool", "independentswap", "trialswap"), abundance. The weighted=FALSE, runs=999, iterations=1000)

The Error in the data frame (ntaxa=specnumber (samp) instead, MNTD. Obs, MNTD. Rand. Scheme, :
'row. Names should specify one of the variables
  • Related