vegandevs / vegan

R package for community ecologists: popular ordination methods, ecological null models & diversity analysis
https://vegandevs.github.io/vegan/
GNU General Public License v2.0
436 stars 95 forks source link

Trying to write a short loop using 'd' function to estimate qD for q = 0,1 and 2 #609

Closed Willowtree72 closed 7 months ago

Willowtree72 commented 7 months ago

I'm trying to write a short loop but it's not working..

So using the ‘d’ function to estimate qD for q=0,1 and 2. The code I have so far for the short loop is qD <- matrix(NA, nrow=nrow(twice.comm), ncol=3)

but I just get NA in all the cells....

Then I'm using ...

for(i in 1:nrow(twice.comm)){

but the error message is... Error in d(twice.comm[i, ], q = j - 1) : could not find function "d"

I'd be very grateful if someone can anyone help with this

gavinsimpson commented 7 months ago

Vegan doesn't contain any function with the name d. Please don't abuse our bug tracker for help requests, especially when those questions are nothing to do with vegan.

Willowtree72 commented 7 months ago

ooops sorry - totally new to this, signed up today, I had no idea I was in a bug tracker arena and didn't realise I was still in the Vegan category - I meant to just ask a question in the main forum... I haven't used github before today - so just starting to try and navigate round it