I keep getting this error
Error in cmdscale(dist, k = k) : NA values not allowed in 'd'
I changes my NA values to zeros so I would not get a numeric error and not sure where to go from here! This is what I am trying
install.packages()
library("vegan")
data("fishGR")
dput(head(mydata, 100))
diversity(fishGR, index = "shannon")
fishGR[fishGR == 1] <- 10
fishGR[fishGR == 2] <- 100
fishGR[fishGR == 3] <- 1000
fishmat = as.matrix(fishGR[,16:16])
goodrows = which(rowSums(fishmat)!=0)
fishmat = fishmat[goodrows,]
NMDS1=metaMDS(fishmat, distance = "bray",k=2,trymax=100)