search for: primary_ve

Displaying 1 result from an estimated 1 matches for "primary_ve".

Did you mean: primary_dev
2008 Oct 17
2
using ifelse with surprising results
Thanks for the gracious assistance in advance I'm working on a non-metric scaling problem and am calculating the distance for input to isoMDS Here is the code library(MASS) vegdata <- tapply(Percent, list(PRIMARY_VE, MASTERID), sum) x.mat <- matrix(x, nrow=40, ncol=2750, byrow=TRUE, dimnames = c(dimnames(x)[1], dimnames(x)[2])) vegdata.dd <- dist(x) vegdata.dd <- ifelse(vegdata.dd==NA, 0.01, x.dd) vegdata.dd Everything works as expected until I try to replace the NA values in the distance matri...