[R] Delete Columns with zeros
Jens Oldeland
Oldeland at gmx.de
Thu Jan 31 15:33:20 CET 2008
Hi,
I know there have been some discussions on that topic. all their
solutions failed in my case...
My problem is that I have a dataframe with many zeros. but while
plotting they are not useful.
so I want to get rid of column 1,3,4,......,n i have 628 columns 1000
rows, so I can´t look manually for the "empty" columns.
Any possible Ideas?
> A250[1:5,1:4]
AAPU ACTO ACRA ADBA
A1100 0 0.0 0 0
A20100 0 0.1 0 0
A20200 0 0.0 0 0
A400 0 1.0 0 0
A4100 0 0.0 0 0
I also didn´t find anything useful in "An Introduction to R".
thank you
Jens
--
+++++++++++++++++++++++++++++++++++++++++
Dipl.Biol. Jens Oldeland
University of Hamburg
Biocentre Klein Flottbek and Botanical Garden
Ohnhorststr. 18
22609 Hamburg,
Germany
Tel: 0049-(0)40-42816-407
Fax: 0049-(0)40-42816-543
Mail: Oldeland at botanik.uni-hamburg.de
Jens.Oldeland at DLR.de (for attachments > 2mb!!)
http://www.biologie.uni-hamburg.de/bzf/fbda005/fbda005.htm
+++++++++++++++++++++++++++++++++++++++++
More information about the R-help
mailing list