VAR1[c(11, 13, 14)] <- NA
Is this what you what?
hth. spencer graves
Adrian Dusa wrote:> Dear list members,
>
>
>
> I'm relatively new to this list; can anyone tell me how to declare
> missing values once a dataset has been attached?
>
> For example here:
>
>
>
> VAR1
>
> 1 1
>
> 2 2
>
> 3 1
>
> 4 3
>
> 5 2
>
> 6 1
>
> 7 3
>
> 8 3
>
> 9 1
>
> 10 2
>
> 11 98
>
> 12 2
>
> 13 97
>
> 14 99
>
> 15 NA
>
> 16 3
>
>
>
> I would like values 97, 98 and 99 to be treated as missing values.
>
> I read everything about is.na but I just can't figure out how to do it.
>
>
>
> Many thanks,
>
> Adrian
>
>
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Adrian Dusa (adi at roda.ro)
> Romanian Social Data Archive (www.roda.ro)
> 1, Schitu Magureanu Bd.
> 76625 Bucharest sector 5
> Romania
> Tel./Fax: +40 (21) 312.66.18
>
>
>
>
> [[alternate HTML version deleted]]
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help