I am having a problem with NA handling in capscale function.

as I understand it from the help capscale should permit NA values when na.action=na.mit or na.exclude,

however I am getting  the error

Error in X[nas, , drop = FALSE] : incorrect number of dimensions

trivial example is pasted below.

library(vegan)
mydist<- matrix(1:25, 5, 5)
mydata<-matrix(rnorm(1:25),5,5)
mydata[3,1]<-NA
mydata<-data.frame(mydata)

capscale(mydist~X1+X2+Condition(X3),data=mydata,na.action = na.omit)


Thanks

Nevil Amos

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to