Hello Bill,
Another way would be:
apply(YOURDATAFRAME,2,anyMissing)
this will give you which column contains missing
values or not.
Bests,
Samer
From:
s-news-owner@lists.biostat.wustl.edu [mailto:s-news-owner@lists.biostat.wustl.edu]
On Behalf Of Bill Osburn
Sent: 2009-02-02 14:12
To:
's-news@lists.biostat.wustl.edu'
Subject: [S] S-PLUS: na.omit on
data.frame columns
I
have a data.frame and want to remove all columns where there is an NA. So far I
can only get na.omit to work on rows.
After
googling for several hours I still can’t locate any ideas. Has anyone
done na.omit or something, on columns?
With
my current data.frame I should go from 16x78 to 16x28