Sorry, I meant putting missing values into a variable.
Thank you for your help.
Neil
On 30/10/2004, at 3:10 PM, <[EMAIL PROTECTED]> wrote:
Would you care to be a bit more explicit?
If you mean how would you put missing values into a variable, this is
easy
blank.spots <- c(1:4, 23, 30:31)
variable[blank.spots] <- NA
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Neil Leonard
Sent: Saturday, 30 October 2004 4:41 PM
To: R-help help
Subject: [R] Recode variable as NA
Hi,
I was wondering how I would recode a variable as being NA (or missing).
Thanks
Neil
______________________________________________
[EMAIL PROTECTED] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide!
http://www.R-project.org/posting-guide.html
______________________________________________
[EMAIL PROTECTED] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html