All,
I am running S-PLUS 8 on a Windows XP PC.
I have data that I want to table to find the number of
lightning occurrences per hour, even if it is 0. If no lightning occurred
during a certain hour, the hour is not in the data frame. The table() function only
outputs names for the hours that are in the data frame, e.g.
>table(dataframe$Hour) yields
0 1 2
3 4 6 9
11 12 13 14 15
16 17 18 19 20
21 22 23
152 97 29 15 3
1 1 2 9
15 14 21 31
45 60 72 98 158 201
225
This shows there were no lightning strikes at 5:00, 7:00,
8:00 and 10:00. How can I get 5, 7, 8, and 10 to show up in the table with
values of 0 associated with them? Thanks for the help.
Win Crawford
*****************************************************************
Winifred
C. Crawford Staff Scientist/Senior Meteorologist
ENSCO,
Inc.
Aerospace
Sciences and Engineering Division
1980
N. Atlantic Ave., Suite 830
Cocoa
Beach, FL 32931
VOICE:
321.853.8130 FAX: 321.853.8415
EMAIL:
crawford.winnie@ensco.com
AMU
Quarterly Reports are available online:
http://science.ksc.nasa.gov/amu
*****************************************************************