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
"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
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