Re: [R] Setting NA

From: David Barron <mothsailor_at_googlemail.com>
Date: Sat 30 Sep 2006 - 17:19:42 GMT

Would using the subset argument that is available in many functions (eg lm) achieve what you want?

On 30/09/06, Anupam Tyagi <AnupTyagi@yahoo.com> wrote:
> Is there a way to set NA values in R, without changing the dataframe? I would
> like to use different combinations of non-response values, as if they were NA
> for some of the computations. I don't want to change the dataframe each time I
> have to do this?
> Anupam.
>
> ______________________________________________
> R-help@stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>

-- 
=================================
David Barron
Said Business School
University of Oxford
Park End Street
Oxford OX1 1HP

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Received on Sun Oct 01 03:27:38 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Sat 30 Sep 2006 - 19:30:07 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.