[R] Setting NA

2006-09-30 Thread Anupam Tyagi
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.


Re: [R] Setting NA

2006-09-30 Thread David Barron
Would using the subset argument that is available in many functions
(eg lm) achieve what you want?

On 30/09/06, Anupam Tyagi [EMAIL PROTECTED] 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.