[R] using ifelse with surprising results

2008-10-17 Thread Steve_Friedman
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 =

Re: [R] using ifelse with surprising results

2008-10-17 Thread Christos Hatzis
Try the following instead: vegdata.dd[is.na(vegdata.dd)] - 0.01 -Christos -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Friday, October 17, 2008 4:50 PM To: [EMAIL PROTECTED] Subject: [R] using ifelse with surprising

Re: [R] using ifelse with surprising results

2008-10-17 Thread hadley wickham
On Fri, Oct 17, 2008 at 3:50 PM, [EMAIL PROTECTED] wrote: 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),