Skip to content
Back to formatted view

Raw Message

Message-ID: <1354289225240-4651439.post@n4.nabble.com>
Date: 2012-11-30T15:27:05Z
From: ramoss
Subject: subset data frame by variable with missing value

Hello,

I have a variable in a data frame that contains NA values. I just want to
subset so that I get the obs where that variable is missing.
In SAS I would do:

data missing;
  set test;
  if myvalue=' ';
run;

How can I perform this simple task in R?

Thanks in advance for your help. 



--
View this message in context: http://r.789695.n4.nabble.com/subset-data-frame-by-variable-with-missing-value-tp4651439.html
Sent from the R help mailing list archive at Nabble.com.