Re: [R-sig-eco] help with assignment

2008-07-04 Thread Mike Dunbar
Exactly: STEER WELL CLEAR OF attach(). This is just the sort of problem you can get into. Mike >>> tyler <[EMAIL PROTECTED]> 04/07/2008 00:11 >>> "Olivia LeDee" <[EMAIL PROTECTED]> writes: > Would someone mind helping with the following code: > > 1) After attaching the primary dataset > > ambi1

Re: [R-sig-eco] help with assignment

2008-07-03 Thread tyler
"Olivia LeDee" <[EMAIL PROTECTED]> writes: > Would someone mind helping with the following code: > > 1) After attaching the primary dataset > > ambi1<-read.table("ambi.txt",header=TRUE,sep='\t') > attach(ambi1) > 2) I would like to change na's for variable (pwd) to 0 > pwd[is.na(pwd)]<-0 > > 3) T

[R-sig-eco] help with assignment

2008-07-03 Thread Olivia LeDee
Would someone mind helping with the following code: 1) After attaching the primary dataset ambi1<-read.table("ambi.txt",header=TRUE,sep='\t') attach(ambi1) 2) I would like to change na's for variable (pwd) to 0 pwd[is.na(pwd)]<-0 3) Then, I need the results of the following