[R] Exclude rows in table
Bert Gunter
gunter.berton at gene.com
Tue Oct 21 21:18:59 CEST 2008
-----Original Message-----
From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org] On
Behalf Of Jim Gustafsson
Sent: Tuesday, October 21, 2008 6:52 AM
To: r-help at stat.math.ethz.ch
Subject: [R] Exclude rows in table
Dear R-Help,
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?
Yes. help("[")
Also see "An Introduction to R." Do your homework before posting, please.
-- Bert Gunter
Thanks in advance
Jim
> A
Business.Unit Event1 Net Date
1 General Fraud 170.000 2006-01-01
2 General Fraud 100.000 2007-11-09
3 General Fraud 486.286 2004-10-21
4 General Fraud 46.603 2005-04-25
5 Life Fraud 24.588 2006-02-28
6 Life Fraud 419.000 2007-11-23
7 Life Fraud 0 2006-07-13
8 Life Fraud 0 2006-07-13
9 General Fraud 47.000 2004-03-10
10 General Fraud 27.384 2003-07-01
11 General Fraud 20.436 2005-03-16
12 General Fraud 64.000 2004-01-01
13 General Fraud 16.414 2007-09-10
----------------------------------------------------------------------------
--
This e-mail and any attachment may be confidential and m...{{dropped:14}}
More information about the R-help
mailing list