[R] Exclude rows in table

Philipp Pagel p.pagel at wzw.tum.de
Tue Oct 21 21:40:14 CEST 2008


On Tue, Oct 21, 2008 at 03:52:05PM +0200, Jim Gustafsson wrote:
> I have the following type of table (with number of rows = 4765)  and want
> to exclude each row where Net=0. Could this be done in a simple way?

subset(A, Net!=0)

or

A[A$Net!=0, ]

See manual, section 2.7

cu
	Philipp

-- 
Dr. Philipp Pagel
Lehrstuhl für Genomorientierte Bioinformatik
Technische Universität München
Wissenschaftszentrum Weihenstephan
85350 Freising, Germany
http://mips.gsf.de/staff/pagel



More information about the R-help mailing list