[R] counting values on one colum only

From: Felipe Carrillo <mazatlanmexico_at_yahoo.com>
Date: Sat, 22 Mar 2008 16:16:59 -0700 (PDT)

Hi all:
Can someone help me count the
number of rows with values in
colum "a" only. assume the name
of my dataframe is "weekly"
I was trying
i<- nrows(weekly$a)
 but returns 7 when it should
 be 4. Thanks

a       b       c     d
1.569	0.013	160.000	27.000
1.632	0.013	146.000	27.000
1.830	0.015	70.000	27.000
2.475	0.019	156.000	27.000

 Felipe D. Carrillo
  Fishery Biologist
  Department of the Interior
  US Fish & Wildlife Service
  California, USA

Be a better friend, newshound, and

R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Sat 22 Mar 2008 - 23:20:49 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Sun 23 Mar 2008 - 02:30:22 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive