[R] Recode variable as NA
nleonard at tartarus.uwa.edu.au
Sat Oct 30 10:02:46 CEST 2004
Sorry, I meant putting missing values into a variable.
Thank you for your help.
On 30/10/2004, at 3:10 PM, <Bill.Venables at csiro.au> wrote:
> Would you care to be a bit more explicit?
> If you mean how would you put missing values into a variable, this is
> blank.spots <- c(1:4, 23, 30:31)
> variable[blank.spots] <- NA
> -----Original Message-----
> From: r-help-bounces at stat.math.ethz.ch
> [mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of Neil Leonard
> Sent: Saturday, 30 October 2004 4:41 PM
> To: R-help help
> Subject: [R] Recode variable as NA
> I was wondering how I would recode a variable as being NA (or missing).
> R-help at stat.math.ethz.ch mailing list
> PLEASE do read the posting guide!
More information about the R-help