s-news
[Top] [All Lists]

S-PLUS: na.omit on data.frame columns

To: "'s-news@lists.biostat.wustl.edu'" <s-news@lists.biostat.wustl.edu>
Subject: S-PLUS: na.omit on data.frame columns
From: Bill Osburn <bosburn@sjrwmd.com>
Date: Mon, 2 Feb 2009 14:12:01 -0500
Accept-language: en-US
Acceptlanguage: en-US
Thread-index: AcmFaiBGejv7kbokQjiUCgI1Y+FN2w==
Thread-topic: 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

<Prev in Thread] Current Thread [Next in Thread>